Skip to content

ModuleFederationPlugin does not pass down options.shareScope to ContainerPlugin #13797

@jacobp100

Description

@jacobp100

Bug report

ModuleFederationPlugin does not pass down options.shareScope to ContainerPlugin

In these lines,

new ContainerPlugin({
name: options.name,
library,
filename: options.filename,
runtime: options.runtime,
exposes: options.exposes
}).apply(compiler);
, options.shareScope is not passed down, even though ContainerPlugin accepts this.

What is the current behavior?

nil

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

nil

What is the expected behavior?

Either it should be passed down, or an additional option under a separate name to pass down (i.e. containerShareScope)

Other relevant information:
webpack version: 5.44.0
Node.js version: v14.15.1
Operating System: macOS Big Sur
Additional tools: nil

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions