Closed caseyWebb closed 8 years ago
I'm not sure what you mean - global
will work in node
, and browserify/webpack will make the same work in browsers.
global
is a local var here that hides node's global
aha, that's a good point. We shouldn't have a local variable named "global".
shabam :tada:
Good stuff! Published to npm as 3.2.0.
Thanks! My only gripe with this change is that it doesn't polyfill
global
in a node environment. Perhapsglobal = typeof window === 'undefined' ? {} : window
should be expanded to also check the actualglobal
object (the variable will probably have to be renamed).