-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Ignored Deployments
|
🟢 Turbopack Benchmark CI successful 🟢Thanks |
✅ This change can build |
|
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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
)
There was a problem hiding this comment.
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
* vercel/turborepo#8347 <!-- Tobias Koppers - Small tree shaking fix and test case update --> * vercel/turborepo#8348 <!-- Donny/강동윤 - fix: Apply `paren-remover` while minifying -->
### Description This is required to fix https://vercel.slack.com/archives/C04KC8A53T7/p1717599802994489 ### Testing Instructions Closes SWC-171
### Description This is required to fix https://vercel.slack.com/archives/C04KC8A53T7/p1717599802994489 ### Testing Instructions Closes SWC-171
### Description This is required to fix https://vercel.slack.com/archives/C04KC8A53T7/p1717599802994489 ### Testing Instructions Closes SWC-171
### Description This is required to fix https://vercel.slack.com/archives/C04KC8A53T7/p1717599802994489 ### Testing Instructions Closes SWC-171
* vercel/turborepo#8347 <!-- Tobias Koppers - Small tree shaking fix and test case update --> * vercel/turborepo#8348 <!-- Donny/강동윤 - fix: Apply `paren-remover` while minifying -->
Description
This is required to fix https://vercel.slack.com/archives/C04KC8A53T7/p1717599802994489
Testing Instructions
Closes SWC-171