Replies: 1 comment
-
I found that externals property of webpack can be a solution for this externals:{
'module1/hooks':`promise new Promise((resolve, reject) => {
const { loadRemote } = __webpack_require__.federation.runtime
loadRemote('module1/hooks').then(resolve)
})`
},
externalsType:'promise', This is working, but I want to know, is this a good way? Or is there anything can be broken, i don't realized that? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Imagine that, I have a host, app, module1 and module2 as containers, so I can init runtime remotes in host and host just dynamically loading remote app.
So is it possible to import module1 and module2 in app sync? Because before of loading app i know where what is module1 and module2 so when loading app load them too.
Beta Was this translation helpful? Give feedback.
All reactions