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

Taro3.0 子包的依赖不要合并编译至主包的 common.js #8127

Closed
pangnate opened this issue Nov 25, 2020 · 2 comments
Closed

Taro3.0 子包的依赖不要合并编译至主包的 common.js #8127

pangnate opened this issue Nov 25, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@pangnate
Copy link

这个特性解决了什么问题?

编译完成后子包的依赖被合并编译至 common.js、common.wxss,导致主包体积超过2M限制

这个 API 长什么样?

希望 Taro3 的编译根据文件的实际所处位置,不要自动合并至主包,由开发者自行划分主子包文件。

目前Taro的用户绝大多数应该都是企业开发者,业务相对复杂。如果一定要通过复杂的 addChunkPages 配置才能分割,势必会造成很多用户无法使用 3.0。

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Nov 25, 2020
@pangnate pangnate changed the title Taro3.0 子包的依赖被合并编译至主包的 common.js Taro3.0 子包的依赖不要合并编译至主包的 common.js Nov 25, 2020
@luckyadam
Copy link
Member

暂时用 addChunkPages,社区有提交一个方案,我们需要研究一下才能合入,具体请见 #8135

@pangnate
Copy link
Author

pangnate commented Nov 26, 2020

收到,希望早日支持,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants