Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ModuleFederationPluginOptions

Index

Properties

exposes?: ExposesObject | (string | ExposesObject)[]

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.

name?: string

The name of the container.

remoteType?: "module" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "promise" | "script" | "node-commonjs"

The external type of the remote containers.

remotes?: RemotesObject | (string | RemotesObject)[]

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.

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.

shareScope?: string

Share scope name used for all shared modules (defaults to 'default').

shared?: SharedObject | (string | SharedObject)[]

Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.