on-internet
← Community

WP5 Module Federation: Singleton instantiated multiple times

Stack Overflow ·

Unfortunately, my repro for this is in a complex proprietary project, so I will do my best to explain what is going on. The closest example project to my use-case is this one: https://github.com/module-federation/module-federation-examples/tree/master/dynamic-system-host Essentially, I have an omnidirectional setup where a single Shell App consumes a set of Remote Apps. Remote Apps are discovered during runtime, and are hence not specified in the Webpack config. The Shell, as well as all Remotes, have a dependency on a shared library, my-shared-lib: "dependencies": { "my-shared-lib": "^1.0.0"

Comments

Sign in or sign up to comment and upvote.

No comments yet.