Closed fcano-ut closed 1 year ago
It's about sourcemap
Leaving this as a future reference in case anyone faces a similar issue:
This was not related to the webpack plugin, it was related to production builds. Every time I ran that plug-in I was also running the build in production mode.
My guess of what happening is this: since this option is related to source-maps, every time I was running a build with sourcemaps disabled the build would fail.
My build works perfectly, except that when I load this one plugin, bundle-stats-webpack-plugin, it starts failing.
webpack.config.js
The error I get when compiling (I compiled with the
sync: true
option to have a prettier error message)Disabling the
parseMap
option fixes this error. The documentation is not very clear on what the parseMap option does, just says to enable it to use swc with babel. I have some babel plugins so I guess I need it?I want to know if this error might be something of swc, or it's a problem in that particular webpack plugin.
Help is welcome, thanks!