Skip to content

Can't create UMD build which can be required by Node #6522

Description

@donaldpipowitch

Do you want to request a feature or report a bug?

bug

What is the current behavior?

If you require a module in the target output UMD you get this error:

ReferenceError: window is not defined
    at Object.<anonymous> (/mnt/c/Users/foo/webpack-umd-node/dist/main.js:1:272)

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

You shouldn't see a ReferenceError.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

Node v8.9.4, webpack v4.0.0-beta.2


According to https://webpack.js.org/configuration/output/#module-definition-systems the UMD build should not include window.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo