-
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
lib.dll.js在H5环境,1.2.0-beta比1.1.9要大136kb #1371
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
CC @Littly |
项目dependencies里面都没有mobx 怎么会把mobx打进去呢? |
@Littly 之前调查结果有误,没mbox什么事;不过相同的配置,打出来的包的确大了100多k,这个能否给下原因? |
因为基础组件库 @tarojs/components 变大了。 在 a2e80ca 之后,为了解决swiper的各种问题,我们引入 https://github.com/nolimits4web/swiper 作为taro中 swiper 的基础实现。 https://github.com/nolimits4web/swiper/blob/master/dist/js/swiper.js 源码 js 有 8k 行左右,导致基础库从此变大了。 后续我们计划在打包时进行tree shaking优化,可以解决打包文件过大的问题。 |
Hello~ 您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。 如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。 Good luck and happy coding~ |
Hello~ 您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。 如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。 Good luck and happy coding~ |
sorry,发现是 taro-ui 的问题…… |
问题描述
H5代码里面代码打包lib.dll.js,包体积大了136kb
在1.2.0-beta中,打包后lib.dll.js体积为:484kb
回退到1.1.9中,lib.dll.js体积为:348kb
复现步骤
[复现问题的步骤]
[或者可以直接贴源代码,能贴文字就不要截图]
package.json内容为:
期望行为
打包后lib.dll体积在348kb左右
报错信息
无
系统信息
补充信息
The text was updated successfully, but these errors were encountered: