alibaba / ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)
https://ice.work
MIT License
17.84k stars 2.09k forks source link

Feat: support optimize package import #6736

Closed ClarkXia closed 9 months ago

ClarkXia commented 9 months ago

Relate to https://github.com/ice-lab/icepack/pull/30

在简单使用 antd 的项目,解析模块数量从 2738 下降到 309,启动时间优化从 358ms166ms

image

image

由于减小的压缩阶段的 treeshaking 处理,让整体 build 提升更加明显,从 1300ms+ 提升值 300ms+

image image

codecov-commenter commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (release/next@910f443). Click here to learn what that means.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/next #6736 +/- ## =============================================== Coverage ? 79.53% =============================================== Files ? 218 Lines ? 19092 Branches ? 2454 =============================================== Hits ? 15185 Misses ? 3876 Partials ? 31 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.