Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swcMinify regression found in 12.1.1 onwards #35920

Closed
1 task done
hanford opened this issue Apr 5, 2022 · 1 comment · Fixed by #35996
Closed
1 task done

swcMinify regression found in 12.1.1 onwards #35920

hanford opened this issue Apr 5, 2022 · 1 comment · Fixed by #35996
Labels
bug Issue was opened via the bug report template.

Comments

@hanford
Copy link
Contributor

hanford commented Apr 5, 2022

Verify canary release

  • I verified that the issue exists in Next.js 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 after 12.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!

@hanford hanford added the bug Issue was opened via the bug report template. label Apr 5, 2022
kdy1 added a commit to kdy1/swc that referenced this issue Apr 7, 2022
@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant