-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Correct the parent scope for static blocks #6001
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you for your contribution! ❤️You can try out this pull request locally by installing Rollup via npm install rollup/rollup#fix/5990 Notice: Ensure you have installed the latest stable Rust toolchain. If you haven't installed it yet, please see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust. or load it into the REPL: |
Performance report
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6001 +/- ##
=========================================
Coverage 98.78% 98.79%
=========================================
Files 270 270
Lines 8745 10559 +1814
Branches 1512 2815 +1303
=========================================
+ Hits 8639 10432 +1793
- Misses 73 87 +14
- Partials 33 40 +7 ☔ 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.
Thank you for analyzing and the quick fix! I took the liberty and push one small change to directly compare the code of the node to avoid a property lookup in the generated code, but in general the fix is correct! Unfortunately, the custom logic here makes it hard to ensure it is always up to date with all possible nodes in ClassBodies.
Thanks for the improvement!
Yeah! We might need to revisit this logic if more node types show up in ClassBodies in the future. |
This PR has been released as part of rollup@4.45.0. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
resolves #5990
Description