Element bundle: modules behind a barrel land in the first load
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript
调研方向
Start with the comment above SIZE_BUDGET_KIB in packages/pivotkit-element/build.js, then trace how pivotkit-core/src/index.js and echarts/renderers feed the lazy chunks. Compare the proposed subpath entries with a separate report chunk and check their effect on the first load. Done means the shared modules no longer land in the first load and the build budget gains headroom.
由索引模型根据 Issue 内容生成。
描述
packages/pivotkit-element/build.js (comment above SIZE_BUDGET_KIB): a module reached through a barrel lands in the first load whenever any lazy chunk uses it. describeView through pivotkit-core/src/index.js puts describe.js (about 3.4 KiB raw) into the first load; echarts/renderers puts zrender's SVG painter (about 21 KiB raw) into the chart group. Not a bug, it costs budget headroom (#198).
Fix ideas: subpath entries without the barrel, or a separate build for the report chunk.
- 主要语言
- JavaScript
- 星标
- 1
- 派生
- 1
- 平均合并
- 3 小时 21 分钟
- 30 天内合并 PR
- 250
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eizedev/pivotkit 的其他 Issue
-
accessibility area:react bug
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
area:tests
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
area:cli bug
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
area:cli enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:react enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
embedpdf/embed-pdf-viewer#1116 ·
维护者通常 1 天内回复
-
[Docs]: Clarify theme variables location and usage in CONTRIBUTING.md可能已有人在做 @srishtimishra520-beep 今天认领。 未关闭kind/docs
难度 1/5 1 小时以内 新手友好度 88/100
meshery/meshery.io#3220 · 1 条评论 ·
维护者通常 1 天内回复
-
Module: Analytics P2 Team S Type: Infrastructure
难度 1/5 1 小时以内 新手友好度 90/100
google/site-kit-wp#14190 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
maathimself/mailflow#801 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
falbany/ProFiles#187 · 1 条评论 ·
维护者通常 1 天内回复