Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleFederationPlugin not passing shareScope to ContainerPlugin #15769

Closed
jchip opened this issue May 4, 2022 · 1 comment
Closed

ModuleFederationPlugin not passing shareScope to ContainerPlugin #15769

jchip opened this issue May 4, 2022 · 1 comment

Comments

@jchip
Copy link
Contributor

jchip commented May 4, 2022

Bug report

What is the current behavior?

When using ModuleFederationPlugin, there is an option shareScope, but when ModuleFederationPlugin initializes ContainerPlugin (

exposes: options.exposes
) it doesn't pass the shareScope option, this cause it to use the default scope.

If the current behavior is a bug, please provide the steps to reproduce.

  • specify a scope other than default for ModuleFederationPlugin
  • result still using default for shareScope in the container

What is the expected behavior?

  • use the custom shareScope in container

Other relevant information:
webpack version: 5.72.20
Node.js version: 16.14.0
Operating System: MacOS
Additional tools:

@alexander-akait
Copy link
Member

Fix #13819

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants