-
Notifications
You must be signed in to change notification settings - Fork 550
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
生产环境,主子应用共享window上的依赖失败 #1157
Comments
Hello @ByronYan01. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository. |
打包产物使用yarn preview可访问 |
看 child 构建产物相关资源是 module 类型,with沙箱是否支持这种类型呢? |
谢谢回复,是改成这样嘛 |
问题描述
主子应用都是 vite+vue3+element-plus,主应用通过加载cdn上的依赖正常渲染,再加载子应用时,将rawWindow上的依赖都赋值给子应用中的window上,子应用加载失败
复现步骤
1.主应用渲染成功,触发子应用加载
2.子应用加载先执行script赋值再执行加载其他文件
上传截图
复现仓库
环境信息
The text was updated successfully, but these errors were encountered: