plugins.ModuleFederationPluginConfig
ModuleFederationPlugin configuration options.
The fields and types are exactly the same as in webpack.container.ModuleFederationPlugin.
You can check documentation for all supported options here: https://webpack.js.org/plugins/module-federation-plugin/
ModuleFederationPluginOptions
↳ ModuleFederationPluginConfig
• Optional 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.
ModuleFederationPluginOptions.exposes
node_modules/webpack/types.d.ts:6955
• Optional filename: string
The filename of the container as relative path inside the output.path directory.
ModuleFederationPluginOptions.filename
node_modules/webpack/types.d.ts:6960
• Optional library: LibraryOptions
Options for library.
ModuleFederationPluginOptions.library
node_modules/webpack/types.d.ts:6965
• Optional name: string
The name of the container.
ModuleFederationPluginOptions.name
node_modules/webpack/types.d.ts:6970
• Optional reactNativeDeepImports: boolean
Enable or disable adding React Native deep imports to shared dependencies
packages/repack/src/webpack/plugins/ModuleFederationPlugin.ts:43
• Optional remoteType: "import" | "var" | "module" | "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.
ModuleFederationPluginOptions.remoteType
node_modules/webpack/types.d.ts:6975
• Optional 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.
ModuleFederationPluginOptions.remotes
node_modules/webpack/types.d.ts:7001
• Optional 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.
ModuleFederationPluginOptions.runtime
node_modules/webpack/types.d.ts:7006
• Optional shareScope: string
Share scope name used for all shared modules (defaults to 'default').
ModuleFederationPluginOptions.shareScope
node_modules/webpack/types.d.ts:7011
• Optional 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.
ModuleFederationPluginOptions.shared
node_modules/webpack/types.d.ts:7016