Comments (1)
是的,因为 eval
无法加载 es module,但是你配置了 libraryTarget: umd
的话,import 的脚本应该会正确编译成了 umd 脚本。 如果构建工具是用的 vite,可以用 vite-plugin-qiankun 解决这个问题。它本质上是在 eval
函数内用 dynamic import
加载 es module
from qiankun.
Related Issues (20)
- 本地调试子应用没有热更新 HOT 1
- vue3 + vite 作为子应用出现的问题解决办法
- 用qiankun,当settings中的layout为side和mix的时候,手动刷新页面,子应用无法加载,当为top的时刷新可以正常加载
- 开启experimentalStyleIsolation后,子应用组件样式里写上scoped的话,就会导致样式丢失 HOT 1
- 开启experimentalStyleIsolation后,子应用组件样式使用import引入时,样式会丢失
- [Bug]从 url import 的代码,会逃逸沙箱吗? HOT 1
- [Feature Request] 3.0 脚本执行异常需要通知微应用立即退出
- 如何处理 js 沙箱逃逸问题 HOT 1
- qiankun在子应用页面刷新后在切换子应用的其他页面报错Uncaught Error: [qiankun]: Wrapper element for xxx is not existed! HOT 2
- 子应用有独立的菜单,应该如何嵌入到主应用 HOT 2
- 关于子服务注册完成后,子服务入口文件html缓存导致js资源加载异常
- 主应用是普通的vue项目(非umi搭建), 子应用umi搭建。 问题:加载不出子应用 HOT 12
- qiankun 框架中以微应用的方式可以加载webassembly项目吗 HOT 1
- favicon and manifest.json request 404 HOT 1
- css 属性选择符包含body字符串,生成style标签样式异常 HOT 1
- css 属性选择符包含body字符串,生成style标签样式异常 HOT 1
- 子项目成功加载但是在render的下一帧就404了,或许是路由配置有问题,请教谢谢 HOT 1
- 子应用之间切换,定时器无法清空 HOT 1
- qiankun+vue3应用级缓存 HOT 1
- 父应用首次进入子应用, 子应用为hash路由时, 在子应用组件mounted 钩子函数中进行路由跳转报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qiankun.