-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix: don't optimize in
with syntheticNamedExports
#6052
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: don't optimize in
with syntheticNamedExports
#6052
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
test/form/samples/namespace-optimization-in-operator-synthetic/_config.js
Outdated
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6052 +/- ##
=======================================
Coverage 98.79% 98.79%
=======================================
Files 271 271
Lines 10598 10599 +1
Branches 2830 2831 +1
=======================================
+ Hits 10470 10471 +1
Misses 88 88
Partials 40 40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Fix looks good to me, thanks a lot!
This PR has been released as part of [email protected]. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
in
namespace tree shake works incorrectly with commonjs plugin #6050Description
Similar to #6041 addressed
ExternalVariable
, this PR also guards against optimizingSyntheticNamedExportVariable
. I'm not sure if this can be accurately tree-shaken with proper analysis, but for now, this simply bails out optimization to keep the previous behavior and avoid breakage.