angular-library-seed
angular-library-seed copied to clipboard
Q: UMD Bundle
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.