browserify/timers-browserify

More build trouble in Webpack

Closed this issue · 3 comments

From @drcallaway:

It looks like this change is causing the following webpack build error:

/* WEBPACK VAR INJECTION */(function(global) {var scope = self || window;
                                                          ^

ReferenceError: self is not defined
    at Object.eval (webpack:///./node_modules/timers-browserify/main.js?:1:59)

@drcallaway, can you try editing your copy to use:

var scope = (typeof self !== "undefined" && self) || window;

@jryans Yep. That fixed my problem.

Okay, I've published this fix in 2.0.9.