Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Each runtime, be it host or remote is a "instance" the first instance is usually the host system since it's initialized first then loads remotes and initialized them. Share is the share scope. It's where the agreed upon shares or avaliable shares are written to. In v1 you'd know it as webpack_share_scope variable. There should be no reason to ever mutate share directly. Rather we would mutate the shares on the instances who also have the meta data and that is also where runtime plugins are pulling info from. |
Beta Was this translation helpful? Give feedback.
-
@haimrait The documentation is updated - it is now describing the global variable defined by Module Federation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Do you have any explanation or documentation about the federation instance that is added to the window object? Also, what is the difference between federation.instances and federation.share?
Beta Was this translation helpful? Give feedback.
All reactions