angular-library-seed icon indicating copy to clipboard operation
angular-library-seed copied to clipboard

Q: UMD Bundle

Open amitdahan opened this issue 6 years ago • 0 comments

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.

amitdahan avatar Mar 07 '18 09:03 amitdahan