feat: add siblings and origins for chunk stats #893
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
增加
stats.json
的信息量,目的是支持 Umi 的子路由资源预加载功能,以及尽量兼容 webpack 的结构,主要改动:siblings
,即 chunk 直接依赖的 chunk 列表,命名同 webpackorigins
,即 chunk 被引入的源 module 信息,命名同 webpackchunk_id
重命名为id
,同 webpackmodule_id
重命名为id
,同 webpackoutput_path
)序列化时均转为驼峰命名,同 webpack@goo-yyh 帮忙确认下 3、4、5 是否会造成 Breaking Change,目前
stats.json
应该没有下游消费方?