-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: conditional/logical expression should request a new tree-shaking #5481
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5481 +/- ##
=======================================
Coverage 98.83% 98.83%
=======================================
Files 238 238
Lines 9554 9560 +6
Branches 2439 2444 +5
=======================================
+ Hits 9443 9449 +6
Misses 46 46
Partials 65 65 ☔ View full report in Codecov by Sentry. |
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.
👍 Thanks for quickly looking into this!
This PR has been released as part of rollup@4.16.1. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
While we should not request a tree-shaking in
ConditionalExpression
orLogicalExpression
if nothing happens; we should request one if anything changes.One way to validate this fix is to use example from #5480, see repl, another one is to use index.js from https://github.com/elchininet/shadow-dom-selector