Closed vamsiampolu closed 9 years ago
That's because you only use exports when specifying an external shim:
https://github.com/thlorenz/browserify-shim#2a-add-expose-global-config-to-external-shim-config
If that's not the issue here, please create a reproduction with no dependencies other than browserify/b-shim that we can clone and test so we can reopen.
I use this command with the above config:
I get this error:
Error: Cannot find module 'google' from 'C:\Users\lenovo\Downloads\Browserify\Browserify\js\leaflet-plugins'
I am using 32 bit Windows 7 with the babun shell.
I use it like this:
I have tried removing the
instead using the
This approach worked for a toy project where I was just doing:
but it does not work when I am trying to use google as a dependency,it does recognize the need to:
exposeGlobals: { google: 'google' }