Represents AbstractLibraryPlugin.
new AbstractLibraryPlugin(abstractLibraryPluginOptions): AbstractLibraryPlugin<T>Attributes
abstractLibraryPluginOptions:
AbstractLibraryPluginOptionsReturns:
AbstractLibraryPlugin<T>Creates an instance of AbstractLibraryPlugin.
Attributes
COMMON_LIBRARY_NAME_MESSAGE:
stringapply(compiler): voidAttributes
Applies the plugin by registering its hooks on the compiler.
chunkHash(chunk, hash, chunkHashContext, libraryContext): voidAttributes
chunk:
Chunkthe chunk
hash:
Hashhash
chunkHashContext:
ChunkHashContextchunk hash context
libraryContext:
LibraryContext<T>context
Returns:
voidProcesses the provided chunk.
embedInRuntimeBailout(module, renderContext, libraryContext): string | undefinedAttributes
module:
Modulethe exporting entry module
renderContext:
RenderContextJavascriptModulesPluginrender context
libraryContext:
LibraryContext<T>context
Embed in runtime bailout.
finishEntryModule(module, entryName, libraryContext): voidAttributes
module:
Modulethe exporting entry module
entryName:
stringthe name of the entrypoint
libraryContext:
LibraryContext<T>context
Returns:
voidFinish entry module.
parseOptions(library): TAttributes
library:
LibraryOptionsnormalized library option
Returns:
Tpreprocess as needed by overriding
Returns preprocess as needed by overriding.
render(source, renderContext, libraryContext): SourceAttributes
source:
Sourcesource
renderContext:
RenderContextJavascriptModulesPluginrender context
libraryContext:
LibraryContext<T>context
Returns:
Sourcesource with library export
Returns source with library export.
renderModuleContent(source, module, renderContext, libraryContext): SourceAttributes
source:
Sourcesource
module:
Modulemodule
renderContext:
ModuleRenderContextrender context
libraryContext:
Omit<LibraryContext<T>, "options">context
Returns:
Sourcesource with library export
Renders module content.
renderStartup(source, module, renderContext, libraryContext): SourceAttributes
source:
Sourcesource
module:
Modulemodule
renderContext:
StartupRenderContextrender context
libraryContext:
LibraryContext<T>context
Returns:
Sourcesource with library export
Renders source with library export.
runtimeRequirements(chunk, set, libraryContext): voidAttributes
Processes the provided chunk.
strictRuntimeBailout(renderContext, libraryContext): string | undefinedAttributes
renderContext:
RenderContextJavascriptModulesPluginrender context
libraryContext:
LibraryContext<T>context
Strict runtime bailout.
Attributes
Attributes