-
Notifications
You must be signed in to change notification settings - Fork 299
[v1.3] rspack 打包优化 #982
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
base: release/v1.3
Are you sure you want to change the base?
[v1.3] rspack 打包优化 #982
Conversation
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
| chunks: (chunk) => !chunkExcludeSet.has(chunk.name || ""), | ||
| hidePathInfo: false, | ||
| name: (module, _ctx) => { | ||
| if (module instanceof NormalModule) { |
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.
这只是为了更好看的命名?
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.
其一吧 (可以找得出多一些引用不当的问题)
其二是这样能把碎片化的档案重新整合在一起。档案数量有下降。
(我研究完一大轮,提了PR,但自己也是不太肯定这样是不是好做法。)
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.
概述 Descriptions
把打包后的chunk档案分割数量及大小优化
总数量和总大小都优化了
变更内容 Changes
截图 Screenshots