Skip to content

Issues with name in ModuleFederationPlugin #1493

Answered by ScriptedAlchemy
sidorares asked this question in Q&A
Discussion options

You must be logged in to vote
  1. remoteName@remoteUrl
  2. Yes the name could be something else, like remote:remote_v1_0@http://somePinnedRemoteGlobal - so the alias you refer to it in your application (remote) isn't always where its located in memory. I might also use promise new Promise so I would be resolving my own global back to the interface.
  3. yeah you can have collisions. So it's up to you to make sure you use remote namespaces that won't clash, also if you want nested remotes at different versions. you'd want to make sure you have the right namespace.
  4. You won't have modules from other URLs overridden as long as they are not called the global name, the internal module references are all inside a closure in separate web…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ScriptedAlchemy
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants