Replies: 1 comment
-
Without using the build plugin, you can specify shared modules but they will have to use the host since the host needs build plugin to tell it when it import from somePackage, re-route that module to loadShare - if you dont want to use build plugin at all - any import of shared package must be manually replaced with loadShare(somePackage) - then it would work. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
https://module-federation.io/guide/basic/runtime.html#api
On the top of the example code, there are comments said:
What does it mean exactly?
Suppose a modern.js host app (without using build plugin) specifies shared singleton dependency package
SomePackage
, when loading remote who also sharesSomePackage
as a singleton, could it work?Beta Was this translation helpful? Give feedback.
All reactions