Represents AbstractLibraryPlugin.
new AbstractLibraryPlugin(__namedParameters): AbstractLibraryPlugin<T>
Attributes
__namedParameters:
AbstractLibraryPluginOptionsReturns:
AbstractLibraryPlugin<T>Creates an instance of AbstractLibraryPlugin.
Type:
stringabstractLibraryPlugin.apply(compiler): void
Attributes
compiler:
CompilerApplies the plugin by registering its hooks on the compiler.
abstractLibraryPlugin.chunkHash(chunk, hash, chunkHashContext, libraryContext): void
Attributes
Processes the provided chunk.
abstractLibraryPlugin.embedInRuntimeBailout(module, renderContext, libraryContext): string | undefined
Attributes
Embed in runtime bailout.
abstractLibraryPlugin.finishEntryModule(module, entryName, libraryContext): void
Attributes
Finish entry module.
abstractLibraryPlugin.parseOptions(library): T
Attributes
library:
LibraryOptionsReturns:
TReturns preprocess as needed by overriding.
abstractLibraryPlugin.render(source, renderContext, libraryContext): Source
Attributes
source:
SourcerenderContext:
RenderContextJavascriptModulesPluginlibraryContext:
LibraryContext<T>Returns:
SourceReturns source with library export.
abstractLibraryPlugin.renderModuleContent(source, module, renderContext, libraryContext): Source
Attributes
source:
Sourcemodule:
ModulerenderContext:
ModuleRenderContextlibraryContext:
Omit<LibraryContext<T>, "options">Returns:
SourceRenders module content.
abstractLibraryPlugin.renderStartup(source, module, renderContext, libraryContext): Source
Attributes
source:
Sourcemodule:
ModulerenderContext:
StartupRenderContextlibraryContext:
LibraryContext<T>Returns:
SourceRenders source with library export.
abstractLibraryPlugin.runtimeRequirements(chunk, set, libraryContext): void
Attributes
Processes the provided chunk.
abstractLibraryPlugin.strictRuntimeBailout(renderContext, libraryContext): string | undefined
Attributes
renderContext:
RenderContextJavascriptModulesPluginlibraryContext:
LibraryContext<T>Strict runtime bailout.