enhance tree-shaking for dynamic imports#5954
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#feat/enhance-dynamic-importsNotice: 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 #5954 +/- ##
==========================================
+ Coverage 98.55% 98.56% +0.01%
==========================================
Files 270 270
Lines 8718 8726 +8
Branches 1495 1504 +9
==========================================
+ Hits 8592 8601 +9
+ Misses 93 92 -1
Partials 33 33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b3058cc to
e11c015
Compare
|
This PR has been released as part of rollup@4.41.0. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
This PR slightly improves tree-shaking for dynamic imports. For direct calls like
module.foo(), it's no longer necessary to consider including all properties ofthis. It also improves the object tree-shaking for parameters inthencallbacks.