swcMinify
regression found in 12.1.1 onwards
#35920
Labels
bug
Issue was opened via the bug report template.
swcMinify
regression found in 12.1.1 onwards
#35920
Verify canary release
Provide environment information
MacOS 12.3
Node 16
Next 12.1.1+
Describe the Bug
Next 12.1.0 properly minified my app with
swcMinify
enabled, but stopped after12.1.1
and continues not working to version (at least)12.1.5-canary.1
Expected Behavior
The application should run without issue
To Reproduce
When building the application with
swcMinify
enabled, everything works as is on Next 12.1.0.Upon upgrading to a later version of Next, rebuilding the application (pnpm build) and re-running (pnpm start) I immediately get runtime errors.
I've created a minimal reproduction below and can answer any questions or make any modifications to the repro case if it's helpful.
Reproduction of the bug:
https://github.com/hanford/bug-swcMinify-next-12.1.1
Also please feel free to change anything in this issue if it provides more context!
The text was updated successfully, but these errors were encountered: