Skip to content

Uncaught ReferenceError: global is not defined #915

Closed
@nikku

Description

@nikku

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions