Call includeNode for self or children nodes in includeDestructuredIfNecessary#6090
Call includeNode for self or children nodes in includeDestructuredIfNecessary#6090lukastaegert merged 3 commits intomasterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Thank you for your contribution! ❤️You can try out this pull request locally by installing Rollup via npm install rollup/rollup#fix/6075Notice: Ensure you have installed the latest nightly 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 Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #6090 +/- ##
==========================================
- Coverage 98.79% 98.73% -0.06%
==========================================
Files 271 271
Lines 10622 10624 +2
Branches 2840 2841 +1
==========================================
- Hits 10494 10490 -4
- Misses 88 89 +1
- Partials 40 45 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
lukastaegert
left a comment
There was a problem hiding this comment.
Nice, looks good to me! One only slightly related comment in order to improve coverage and avoid untested code.
|
This PR has been released as part of rollup@4.50.1. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
resolves #6075
Description
By directly assigning the
includedvalue of a child node (e.g., element.included = true), the first include logic of that child inincludeNodemay be bypassed. Therefore, this PR useschildNode.includeNodeinstead of settingelement.included = truedirectly. In addition,includeNodeis also executed on the current node itself inincludeDestructuredIfNecessaryfor the same reason. Finally, this PR fixes incorrect logic inObjectPatternand simplifies the logic inArrayPattern.