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.
I'm having trouble figuring out why in your UMD config, you set
tsconfig.json'smoduleprop tocommonjsinstead ofumd.In my case, setting it to
umdbreaks the build, yetcommonjsworks. Why is this happening?The only other place I can see a reference to UMD in this setup is in the
webpack.umd.config.jsfile, in thelibraryTarget: '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
commonjsintsconfig.json? Whyumdin webpack'slibraryTaget? I thought I got everything before but I kinda lost it on this.