Issues with name in ModuleFederationPlugin #1493
-
As far as I understand, during the loading of remote module ( say pointing to A bunch of questions for me to clarify this behaviour and potential issues with it.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Are you sure Scenario for 4: host app consuming |
Beta Was this translation helpful? Give feedback.
-
No the string is "someglobal_v@http" I'm representing a key value pair when configuring the remote {name: remote_v1} Consuming {remotes:{remoteName:"remote_1@http"}} You're loading two remotes, with the same global namespace. As represented by the global@url syntax. So the last remote will overwrite the first because the containers are both named the same. Name needs to be unique and you need to reference that name on the global @ Yes I'm sure. I have deployed examples and versioned remotes powered by GUIs that let me interchange any deployed remote with anything else |
Beta Was this translation helpful? Give feedback.
remote
) isn't always where its located in memory. I might also usepromise new Promise
so I would be resolving my own global back to the interface.