Replies: 5 comments 3 replies
-
Although it sounds like you need this for a different reason, this is similar to #37242. You might want to leave a comment there. 👍 |
Beta Was this translation helpful? Give feedback.
-
I've just spent a big chunk of my life figuring out why 3rd party web worker breaks with production build. Turns out that the mangler would obfuscate WorkerGlobalScope property
the issue has been fixed. While doing a build, I noticed this warning I just want to note the importance of being able to set the minifier/mangler settings from within a config. |
Beta Was this translation helpful? Give feedback.
-
we need it added back~~~ |
Beta Was this translation helpful? Give feedback.
-
I was facing a similar issue, it seems they added a flag to the
But I was still facing issues of function and class names being mangled. So I had to disable the minification in const nextConfig = {
swcMinify: false,
...
}; And that did it for me. However there is a warning:
|
Beta Was this translation helpful? Give feedback.
-
We are using Joyride https://github.com/gilbarbara/react-joyride and it does not work without setting Unsure why it mangles things where it does not work? Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Describe the feature you'd like to request
Allow passing the mangle options to swc minify
Describe the solution you'd like
I would like to be able to set the following mangle options when using the swc minify:
This is important when using class constructor names in the code itself.
Describe alternatives you've considered
The only alternative is using a patch to add those directly to this file:
next.js/packages/next/build/webpack/plugins/terser-webpack-plugin/src/index.js
Line 169 in d091c81
Beta Was this translation helpful? Give feedback.
All reactions