Skip to content

export Module even if ENVIRONMENT_IS_NODE is false #5255

@wclr

Description

@wclr

Currenlty Module is exported:

if (typeof module !== "undefined") {
  module["exports"] = Module;
}

only if ENVIRONMENT_IS_NODE is true.

But it doesn't when module is run in browser by bundlers like I checked with (fuse-box), didn't check webpack/browserfy yet, but pretty sure it will fail due to this too.

Think module["exports"] = Module; without checking the env.

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