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 am dealing with a bug in next.js production build that doesn't happen on local.
Since the underlying code is still different even when using SourceMaps, I suspect that one of the things causing it might be the minification and mangling, even though the particular thing I am relying on is not mentioned in the swc documentation https://swc.rs/docs/configuration/minification.
On that page I read that swc can be configured via .swcrc, but I read in this discussion thread #30413 that .swcrc files are not supported. But then I found out in Next.js docs that the flag for minification was removed in v15 https://nextjs.org/docs/architecture/nextjs-compiler#minification
Proposal
Same as the previous flag for disabling minification
When the flag is present and set to true, the build output will resemble the original code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Goals
Apparently Minification was removed in v15, I would like to bring it back. Thank you
https://nextjs.org/docs/architecture/nextjs-compiler#minification
Non-Goals
No response
Background
I am dealing with a bug in next.js production build that doesn't happen on local.
Since the underlying code is still different even when using SourceMaps, I suspect that one of the things causing it might be the minification and mangling, even though the particular thing I am relying on is not mentioned in the swc documentation https://swc.rs/docs/configuration/minification.
On that page I read that swc can be configured via
.swcrc, but I read in this discussion thread #30413 that.swcrcfiles are not supported. But then I found out in Next.js docs that the flag for minification was removed in v15 https://nextjs.org/docs/architecture/nextjs-compiler#minificationProposal
Same as the previous flag for disabling minification
true, the build output will resemble the original code.All reactions