On this page

new ModuleFederationPlugin(options): ModuleFederationPlugin
Attributes

Creates an instance of ModuleFederationPlugin.

Attributes
apply(compiler): void
Attributes
compiler:<Compiler>
Returns:<void>

Applies the plugin by registering its hooks on the compiler.


Attributes

Get the compilation hooks associated with this plugin.


Attributes
[] Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.
filename:<string>
The filename of the container as relative path inside the  output.path directory.
Options for library.
The name of the container.
[] Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.
remoteType:
<"asset"> | <"module"> | <"asset-url"> | <"css-import"> | <"global"> | <"import"> | <"promise"> | <"this"> | <"var"> | <"script"> | <"commonjs"> | <"jsonp"> | <"assign"> | <"window"> | <"self"> | <"commonjs2"> | <"commonjs-module"> | <"commonjs-static"> | <"amd"> | <"amd-require"> | <"umd"> | <"umd2"> | <"system"> | <"module-import"> | <"node-commonjs"> | <"css-url"> The external type of the remote containers.
runtime:<string> | <false>
The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.
[] Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
shareScope:<string>
Share scope name used for all shared modules (defaults to 'default').