主包体积过大,可以把组件写在分包里面进行调用吗?

小程序 文章 2021-12-14 12:00 784 0 全屏看文

AI助手支持GPT4.0

主包体积过大,可以把组件写在分包里面进行调用吗?The main package is too large, can I write the components in the sub-package for calling?

主包体积过大,可以把组件写在分包里面进行调用吗?

现在主包调用分包的组件时候会报一个路径的错误。

Now, when the main package calls the subcontracted components, it will report a path error.

回答:

巴斯光年:

不可以

依然:

只能分离页面

中式小面包:

分包就是用到再加载,你把组件写在分包里,没用到 -> 没加载 -> 怎么调用。逻辑上就不对

-EOF-

AI助手支持GPT4.0