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
加载子应用,主应用相关css、js会重新再次加载;以及生产环境主子应用共享依赖相关问题 #1191
Comments
共享依赖的问题目前没有很好的解决方案 |
好的谢谢,期待官方能尽快提供较好的解决方案 |
框架应该不会处理这种问题的, “window.Vue = window.rawWindow.Vue”这种写法本质上是和沙箱理念相冲突的。 不知道你们为什么需要这种代码设计。 上面那种写法,一是难以兼容市面上所有第三方依赖;二是边界不清晰,出现问题难以定位。 |
谢谢回复;因为现在有的子引用加载速度有些慢,所以想一些依赖共享,减少一些加载时间 |
子应用的弹框popper都挂在到主应用的body下,这个请问一下解决了吗? |
子应用不共享主应用的element-ui,自己应用安装不会有这个问题 |
就是想共享,优化加载速度。 |
那你试试所有子工程都访问同一路径的element-ui文件,使用globalAssets 或 global 属性达到访问一次,下次都走缓存(这个我还没试,应该可行) |
问题描述
1157 提供的解决方案,现在有些问题想请教一下
复现步骤
上传截图
共享依赖,所属沙箱都是主应用
加载子应用,主应用css、js 重新加载并canceled
复现仓库
https://github.com/ByronYan01/demo0408
环境信息
The text was updated successfully, but these errors were encountered: