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

分包问题 #60

Open
transtone opened this issue Oct 10, 2024 · 1 comment
Open

分包问题 #60

transtone opened this issue Oct 10, 2024 · 1 comment

Comments

@transtone
Copy link

transtone commented Oct 10, 2024

好像用 vitesse-uni-app 开发的人不多,Issues 很冷清,一些常见问题也没人提。

一些图表插件比如 echarts 非常大,用在小程序上就需要分包。但该项目会把 import 的所有包都放到全局的 common/vendor.js 里,有没有什么方法,将子包的 import 放到子包的 common/vendor.js 里?

uni-app 官方讨论:
dcloudio/uni-app#3200

@wtto00
Copy link

wtto00 commented Oct 14, 2024

可以尝试把npm依赖包文件复制到本地的分包root目录下,然后分包引入本地的文件来解决。

不太清楚有没有更好的办法。

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

2 participants