This seems similar to #6 but I don't think it's the same thing.
When I refer to the global object in a file, browserify seems to wrap that module in another function to pass in global. This means that when I load the proxyquireified bundle, I get an undefined is not a function error because require is undefined.
To reproduce, simply add global.a = 'a' to test.js in the example.
This seems similar to #6 but I don't think it's the same thing.
When I refer to the
global
object in a file, browserify seems to wrap that module in another function to pass inglobal
. This means that when I load the proxyquireified bundle, I get anundefined is not a function
error becauserequire
is undefined.To reproduce, simply add
global.a = 'a'
totest.js
in the example.