Skip to content

Q: UMD Bundle #25

@amitdahan

Description

@amitdahan

I'm having trouble figuring out why in your UMD config, you set tsconfig.json's module prop to commonjs instead of umd.

In my case, setting it to umd breaks the build, yet commonjs works. Why is this happening?

The only other place I can see a reference to UMD in this setup is in the webpack.umd.config.js file, in the libraryTarget: 'umd' part.

What's going on? In my case at least, this is the only setting combination that "works" but what's going on? Why commonjs in tsconfig.json? Why umd in webpack's libraryTaget? I thought I got everything before but I kinda lost it on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions