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

【Taro.2.0.1】升级到2.0后,H5打包chunk分包的js大了很多 #5374

Closed
yinlsea opened this issue Jan 20, 2020 · 5 comments
Closed
Assignees

Comments

@yinlsea
Copy link
Contributor

yinlsea commented Jan 20, 2020

问题描述

升级到2.0后,H5打包后大了很多,对比发现是chunk目录下分包的js大了很多,和原来1.3.x的做比较后发现chunk分包的js文件中有大量base64转码,而原来1.3.x的chunk分包js中是没有。imageUrlLoaderOption配置没有变都是设置的limit:8192。

@taro-bot
Copy link

taro-bot bot commented Jan 20, 2020

CC @luckyadam

@taro-bot
Copy link

taro-bot bot commented Jan 20, 2020

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@yinlsea
Copy link
Contributor Author

yinlsea commented Feb 8, 2020

是打包的H5,另外imageUrlLoaderOption在1.3的时候就配置了8192,这里没有改变,对比和1.3打包的差异

@yinlsea
Copy link
Contributor Author

yinlsea commented May 18, 2020

隔了好久来看是否修复该问题,升级到最新的2.2.4尝试,编译打包居然内存溢出,报 JavaScript heap out of memory,降级到2.1.5打包通过,不会报内存溢出,但是依然没有解决chunk js内容中大量base64转码,只能继续切回1.3.x

@Chen-jj Chen-jj closed this as completed Jul 3, 2020
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

3 participants