On this page

Source Code: lib/library/AbstractLibraryPlugin.js#L49

Represents AbstractLibraryPlugin.

new AbstractLibraryPlugin(__namedParameters): AbstractLibraryPlugin<T>
Source Code: lib/library/AbstractLibraryPlugin.js#L54
Attributes

Creates an instance of AbstractLibraryPlugin.

Type:string
abstractLibraryPlugin.apply(compiler): void
Source Code: lib/library/AbstractLibraryPlugin.js#L68
Attributes
compiler:Compiler

Applies the plugin by registering its hooks on the compiler.

abstractLibraryPlugin.chunkHash(chunk, hash, chunkHashContext, libraryContext): void
Source Code: lib/library/AbstractLibraryPlugin.js#L343
Attributes
chunk:Chunk
hash:Hash
chunkHashContext:ChunkHashContext
libraryContext:LibraryContext<T>

Processes the provided chunk.

abstractLibraryPlugin.embedInRuntimeBailout(module, renderContext, libraryContext): string | undefined
Source Code: lib/library/AbstractLibraryPlugin.js#L273
Attributes
module:Module
libraryContext:LibraryContext<T>
Returns:string | undefined

Embed in runtime bailout.

abstractLibraryPlugin.finishEntryModule(module, entryName, libraryContext): void
Source Code: lib/library/AbstractLibraryPlugin.js#L264
Attributes
module:Module
entryName:string
libraryContext:LibraryContext<T>

Finish entry module.

abstractLibraryPlugin.parseOptions(library): T
Source Code: lib/library/AbstractLibraryPlugin.js#L251
Attributes
Returns:T

Returns preprocess as needed by overriding.

abstractLibraryPlugin.render(source, renderContext, libraryContext): Source
Source Code: lib/library/AbstractLibraryPlugin.js#L307
Attributes
source:Source
libraryContext:LibraryContext<T>
Returns:Source

Returns source with library export.

abstractLibraryPlugin.renderModuleContent(source, module, renderContext, libraryContext): Source
Source Code: lib/library/AbstractLibraryPlugin.js#L331
Attributes
source:Source
module:Module
renderContext:ModuleRenderContext
libraryContext:Omit<LibraryContext<T>, "options">
Returns:Source

Renders module content.

abstractLibraryPlugin.renderStartup(source, module, renderContext, libraryContext): Source
Source Code: lib/library/AbstractLibraryPlugin.js#L319
Attributes
source:Source
module:Module
renderContext:StartupRenderContext
libraryContext:LibraryContext<T>
Returns:Source

Renders source with library export.

abstractLibraryPlugin.runtimeRequirements(chunk, set, libraryContext): void
Source Code: lib/library/AbstractLibraryPlugin.js#L294
Attributes
chunk:Chunk
set:Set<string>
libraryContext:LibraryContext<T>

Processes the provided chunk.

abstractLibraryPlugin.strictRuntimeBailout(renderContext, libraryContext): string | undefined
Source Code: lib/library/AbstractLibraryPlugin.js#L283
Attributes

Strict runtime bailout.