mpx icon indicating copy to clipboard operation
mpx copied to clipboard

[Bug report] size-report 中无法计算纯 js 入口引入的体积

Open lp0124 opened this issue 1 year ago • 3 comments

希望能计算 sensorsdata 这个 js 文件占用的体积,按照我对这个功能的理解,分组应该只会计算出 js 文件的体积,但是现在却将页面的体积也计算在内

示例代码如下,执行 yarn && yarn build

mpx-project3.zip

image image image

lp0124 avatar Oct 30 '24 13:10 lp0124

将 noEntryModules 换成 noEntryRules,问题依然存在

lp0124 avatar Oct 31 '24 01:10 lp0124

尝试将entryRules中的includes 设置为空试试

Blackgan3 avatar Oct 31 '24 02:10 Blackgan3

尝试将entryRules中的includes 设置为空试试

不可行,将 entryRules 的 includes 置为空数组或删除时,size 直接为 0 了

lp0124 avatar Oct 31 '24 08:10 lp0124