__NEXT_MANGLING_DEBUG
resp. --no-mangling
do not work with swcMinify: true
(per next config)
#50208
Closed
1 task done
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:51:50 PDT 2023; root:xnu-8796.121.2~5/RELEASE_X86_64 Binaries: Node: 18.15.0 npm: 9.5.0 Yarn: 1.22.19 pnpm: N/A Relevant packages: next: 13.4.4-canary.2 eslint-config-next: 13.4.3 react: 18.2.0 react-dom: 18.2.0 typescript: 5.0.4
Which area(s) of Next.js are affected? (leave empty if unsure)
SWC minifier (swcMinify: true)
Link to the code that reproduces this issue or a replay of the bug
https://github.com/vercel/next.js/tree/canary/examples/basic-export
To Reproduce
yarn create next-app
yarn next build --no-mangling
.next
next.config.js
to useswcMinify: true
yarn next build --no-mangling
.next
, see e.g. class names are preserved.Describe the Bug
Currently disabling terser mangling (
__NEXT_MANGLING_DEBUG
resp.--no-mangling
) do not work withswcMinify: true
(i.e. default).Expected Behavior
__NEXT_MANGLING_DEBUG
resp.--no-mangling
should work regardless ofswcMinify
.Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: