-
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
怎么新增 split chunks #17013
Comments
This was referenced Dec 14, 2024
可以这样试一下,我用 lodash 测了下可以实现。 |
这个实测不行,页面会白屏 |
echarts 用 require 的方式引入。我试了下是可以正常引入 echarts 实例的。你看看是哪一步白屏了。 |
正常引入 echarts 示例指的是可以正常 console 出 echarts version。我没进一步测试 echarts 本身的渲染逻辑。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个特性解决了什么问题?
项目中有用到 echarts,想把 echarts 单独一个 chunk,只给有用到的页面引用,应该怎么配置。
在 cacheGroups 增加了 echarts,但是发现页面不会引用 echarts 这个 chunk。
在 mini.commonChunks 里增加 echarts,就会导致 app.js 里会引用 echarts 这个 chunk,导致所有页面都引用了。
这个 API 长什么样?
无
The text was updated successfully, but these errors were encountered: