-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Taro 3.3.10 编译 H5 没有 tree shaking #10466
Comments
taro-bot2
bot
added
F-react
Framework - React
T-h5
Target - 编译到 H5
V-3
Version - 3.x
labels
Oct 20, 2021
这个问题有进展了吗?也发现了同样的问题 |
确实是在这个版本开始,tree shaking开始丢了。。 |
@ZakaryCode 打小程序的tree-shaking是不是也没有了,我发现包体都大了一些。。。 |
不至于,如果验证有问题可以单独再提个 issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
复现仓库
https://github.com/zousandian/taro3test
浏览器版本: chrome 62
使用框架: React
复现步骤
使用 taro init 默认模版,没有引入 taro-ui,编译H5体积都高达900多K
期望结果
按照 taro 文章的说法,应该是优化过 tree shaking 的
https://taro-docs.jd.com/taro/blog/2019-02-28-taro-h5-optimize
实际结果
H5 编译 tree shaking 没有生效
环境信息
The text was updated successfully, but these errors were encountered: