Skip to content

Conversation

@cyfung1031
Copy link
Collaborator

概述 Descriptions

把打包后的chunk档案分割数量及大小优化
总数量和总大小都优化了

变更内容 Changes

截图 Screenshots

@cyfung1031 cyfung1031 changed the title rspack 打包优化 [v1.3] rspack 打包优化 Nov 19, 2025
@CodFrm CodFrm requested a review from Copilot November 28, 2025 07:04
Copy link
Contributor

Copilot AI left a 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.

@CodFrm CodFrm added the P1 🔥 重要但是不紧急的内容 label Dec 9, 2025
chunks: (chunk) => !chunkExcludeSet.has(chunk.name || ""),
hidePathInfo: false,
name: (module, _ctx) => {
if (module instanceof NormalModule) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这只是为了更好看的命名?

Copy link
Collaborator Author

@cyfung1031 cyfung1031 Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其一吧 (可以找得出多一些引用不当的问题)
其二是这样能把碎片化的档案重新整合在一起。档案数量有下降。

(我研究完一大轮,提了PR,但自己也是不太肯定这样是不是好做法。)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得引用问题更多是依赖工具去排查吧,我记得有可视化工具可以看到打包后产物的引用情况

BundleAnalyzerPlugin

8710676

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 🔥 重要但是不紧急的内容

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants