new ProvideSharedPlugin(options): ProvideSharedPluginAttributes
options:
ProvideSharedPluginOptionsoptions
Returns:
ProvideSharedPluginCreates an instance of ProvideSharedPlugin.
Attributes
options:
ProvideSharedPluginOptionsapply(compiler): voidAttributes
Applies the plugin by registering its hooks on the compiler.
Type:
(string | ProvidesObject)[] | ProvidesObjectAdvanced configuration for modules that should be provided as shared modules to the share scope.
Attributes
eager:
booleanInclude the provided module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.
shareKey:
stringKey in the share scope under which the shared modules should be stored.
shareScope:
stringShare scope name.
version:
string | falseVersion of the provided module. Will replace lower matching versions, but not higher.
Attributes
Modules that should be provided as shared modules to the share scope. Property names are used as share keys.
[index: {string}]string | ProvidesConfig