Represents AbstractLibraryPlugin.
new AbstractLibraryPlugin(abstractLibraryPluginOptions): AbstractLibraryPluginAttributes
abstractLibraryPluginOptions:
<AbstractLibraryPluginOptions>Returns:
<AbstractLibraryPlugin><
<T>
>Creates an instance of AbstractLibraryPlugin.
Attributes
COMMON_LIBRARY_NAME_MESSAGE:
<string>apply(compiler): voidAttributes
compiler:
<Compiler>the compiler instance
Returns:
<void>Applies the plugin by registering its hooks on the compiler.
chunkHash(chunk, hash, chunkHashContext, libraryContext): voidAttributes
chunk:
<Chunk>the chunk
hash:
<Hash>hash
chunkHashContext:
<ChunkHashContext>chunk hash context
libraryContext:
<LibraryContext><
<T>
> contextReturns:
<void>Processes the provided chunk.
embedInRuntimeBailout(module, renderContext, libraryContext): string | undefinedAttributes
module:
<Module>the exporting entry module
renderContext:
<RenderContextJavascriptModulesPlugin>render context
libraryContext:
<LibraryContext><
<T>
> contextReturns:
<string>
|
<undefined>bailout reason
Embed in runtime bailout.
finishEntryModule(module, entryName, libraryContext): voidAttributes
module:
<Module>the exporting entry module
entryName:
<string>the name of the entrypoint
libraryContext:
<LibraryContext><
<T>
> contextReturns:
<void>Finish entry module.
parseOptions(library): TAttributes
library:
<LibraryOptions>normalized library option
Returns:
{T} preprocess as needed by overriding
Returns preprocess as needed by overriding.
render(source, renderContext, libraryContext): SourceAttributes
source:
<Source>source
renderContext:
<RenderContextJavascriptModulesPlugin>render context
libraryContext:
<LibraryContext><
<T>
> contextReturns:
<Source>source with library export
Returns source with library export.
renderModuleContent(source, module, renderContext, libraryContext): SourceAttributes
source:
<Source>source
module:
<Module>module
renderContext:
<ModuleRenderContext>render context
libraryContext:
Returns:
<Source>source with library export
Renders module content.
renderStartup(source, module, renderContext, libraryContext): SourceAttributes
source:
<Source>source
module:
<Module>module
renderContext:
<StartupRenderContext>render context
libraryContext:
<LibraryContext><
<T>
> contextReturns:
<Source>source with library export
Renders source with library export.
runtimeRequirements(chunk, set, libraryContext): voidAttributes
Processes the provided chunk.
strictRuntimeBailout(renderContext, libraryContext): string | undefinedAttributes
renderContext:
<RenderContextJavascriptModulesPlugin>render context
libraryContext:
<LibraryContext><
<T>
> contextReturns:
<string>
|
<undefined>bailout reason
Strict runtime bailout.
Attributes
Attributes