Skip to content

refactor(web): 使用函数式 manualChunks 优化构建分包策略 - #43

Merged
tyanxie merged 1 commit into
mainfrom
feat/chunk-splitting
Aug 9, 2026
Merged

refactor(web): 使用函数式 manualChunks 优化构建分包策略#43
tyanxie merged 1 commit into
mainfrom
feat/chunk-splitting

Conversation

@tyanxie

@tyanxie tyanxie commented Aug 9, 2026

Copy link
Copy Markdown
Owner
  • 从枚举式改为函数式 manualChunks,按模块路径匹配避免遗漏深层依赖
  • 拆分为 4 个 chunk:framework / markdown / vendor / app(业务代码)
  • 修复 parse5、js-yaml 等 markdown 子依赖未纳入 markdown chunk 的问题
  • 业务代码 chunk 从 635KB 降至 101KB,提升增量更新时的缓存效率
  • 调高 chunkSizeWarningLimit 至 600 消除 markdown 生态的体积警告

- 从枚举式改为函数式 manualChunks,按模块路径匹配避免遗漏深层依赖
- 拆分为 4 个 chunk:framework / markdown / vendor / app(业务代码)
- 修复 parse5、js-yaml 等 markdown 子依赖未纳入 markdown chunk 的问题
- 业务代码 chunk 从 635KB 降至 101KB,提升增量更新时的缓存效率
- 调高 chunkSizeWarningLimit 至 600 消除 markdown 生态的体积警告
@tyanxie
tyanxie merged commit bac1ed1 into main Aug 9, 2026
1 check passed
@tyanxie
tyanxie deleted the feat/chunk-splitting branch August 9, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant