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

fix: Apply paren-remover while minifying #8348

Merged
merged 4 commits into from
Jun 7, 2024
Merged

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Jun 6, 2024

Description

This is required to fix https://vercel.slack.com/archives/C04KC8A53T7/p1717599802994489

Testing Instructions

Closes SWC-171

@kdy1 kdy1 self-assigned this Jun 6, 2024
@kdy1 kdy1 requested a review from a team as a code owner June 6, 2024 10:11
Copy link

vercel bot commented Jun 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 2:32am
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 2:32am
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jun 7, 2024 2:32am
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jun 7, 2024 2:32am
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Jun 7, 2024 2:32am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jun 7, 2024 2:32am
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jun 7, 2024 2:32am
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jun 7, 2024 2:32am
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jun 7, 2024 2:32am
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Jun 7, 2024 2:32am

Copy link
Contributor

github-actions bot commented Jun 6, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Jun 6, 2024

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Jun 6, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

Copy link
Member

@timneutkens timneutkens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR seems to be missing a test to prevent future regression 👀

@@ -0,0 +1,30 @@
function toFixed(value, maxDecimals, roundingFunction, optionals) {
Copy link
Member Author

@kdy1 kdy1 Jun 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is copied from swc-project/swc#8442 (SWC PR for paren_remover)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I also verified this fix by disabling paren_remover in the testing system for SWC minifier

@kdy1 kdy1 requested review from timneutkens and eps1lon June 7, 2024 02:44
@sokra sokra merged commit 7a21698 into main Jun 7, 2024
56 of 58 checks passed
@sokra sokra deleted the kdy1/fix-turbo-minifier branch June 7, 2024 06:54
sokra added a commit to vercel/next.js that referenced this pull request Jun 7, 2024
* vercel/turborepo#8347 <!-- Tobias Koppers - Small
tree shaking fix and test case update -->
* vercel/turborepo#8348 <!-- Donny/강동윤 - fix: Apply
`paren-remover` while minifying -->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
### Description

This is required to fix
https://vercel.slack.com/archives/C04KC8A53T7/p1717599802994489



### Testing Instructions

Closes SWC-171
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

This is required to fix
https://vercel.slack.com/archives/C04KC8A53T7/p1717599802994489



### Testing Instructions

Closes SWC-171
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

This is required to fix
https://vercel.slack.com/archives/C04KC8A53T7/p1717599802994489



### Testing Instructions

Closes SWC-171
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

This is required to fix
https://vercel.slack.com/archives/C04KC8A53T7/p1717599802994489



### Testing Instructions

Closes SWC-171
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 16, 2024
* vercel/turborepo#8347 <!-- Tobias Koppers - Small
tree shaking fix and test case update -->
* vercel/turborepo#8348 <!-- Donny/강동윤 - fix: Apply
`paren-remover` while minifying -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants