-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Uncaught ReferenceError: global is not defined #915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Right and the lodash-node bundle is a build of lodash explicitly exported as Node.js/io.js modules. |
Is there any npm compatible build of of lodash that is compatible with the browser + browserify then? |
There's lodash and lodash-compat though they only have UMD in the monolithic |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It is not save to rely on
global
being available in browserified bundles (i.e. users may choose to disable insertion of global variables to keep the bundle minimal.In case browserify (or webpack) did not expose a
global
variable support.js throws an error sayingI am not sure what the right approach would be to solve this issue. I would probably check for
window
as a global variable because that should (?) always be available in DOM environments.The text was updated successfully, but these errors were encountered: