Closed
Description
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 saying
Uncaught ReferenceError: global is not defined
I 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.