Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lp0124 opened this issue Oct 30, 2024 · 3 comments
Open

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

lp0124 opened this issue Oct 30, 2024 · 3 comments

Comments

@lp0124
Copy link
Contributor

lp0124 commented Oct 30, 2024

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

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

mpx-project3.zip

image image image
@lp0124
Copy link
Contributor Author

lp0124 commented Oct 31, 2024

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

@Blackgan3
Copy link
Collaborator

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

@lp0124
Copy link
Contributor Author

lp0124 commented Oct 31, 2024

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

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

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

No branches or pull requests

2 participants