You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I'm having trouble figuring out why in your UMD config, you set
tsconfig.json
'smodule
prop tocommonjs
instead ofumd
.In my case, setting it to
umd
breaks the build, yetcommonjs
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 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
commonjs
intsconfig.json
? Whyumd
in webpack'slibraryTaget
? I thought I got everything before but I kinda lost it on this.The text was updated successfully, but these errors were encountered: