On this page

new AbstractLibraryPlugin(__namedParameters): void
  • __namedParameters {AbstractLibraryPluginOptions} options
  • Returns: {AbstractLibraryPlugin}
Attributes
COMMON_LIBRARY_NAME_MESSAGE:<string>
apply(compiler): void
Attributes
compiler:<Compiler>
the compiler instance
Returns:
{void}

Apply the plugin


chunkHash(chunk, hash, chunkHashContext, libraryContext): void
Attributes
chunk:<Chunk>
the chunk
hash:
{Hash} hash
chunkHashContext:
{ChunkHashContext} chunk hash context
libraryContext:
{LibraryContext } context
Returns:
{void}

embedInRuntimeBailout(module, renderContext, libraryContext): string | undefined
Attributes
module:<Module>
the exporting entry module
renderContext:
{RenderContextJavascriptModulesPlugin} render context
libraryContext:
{LibraryContext } context
bailout reason

finishEntryModule(module, entryName, libraryContext): void
Attributes
module:<Module>
the exporting entry module
entryName:<string>
the name of the entrypoint
libraryContext:
{LibraryContext } context
Returns:
{void}

parseOptions(library): T
Attributes
normalized library option
Returns:
{T} preprocess as needed by overriding

render(source, renderContext, libraryContext): Source
Attributes
source:<Source>
source
renderContext:
{RenderContextJavascriptModulesPlugin} render context
libraryContext:
{LibraryContext } context
Returns:<Source>
source with library export

renderModuleContent(source, module, renderContext, libraryContext): Source
Attributes
source:<Source>
source
module:<Module>
module
renderContext:
{ModuleRenderContext} render context
libraryContext:
{Omit<LibraryContext , "options">} context
Returns:<Source>
source with library export

renderStartup(source, module, renderContext, libraryContext): Source
Attributes
source:<Source>
source
module:<Module>
module
renderContext:
{StartupRenderContext} render context
libraryContext:
{LibraryContext } context
Returns:<Source>
source with library export

runtimeRequirements(chunk, set, libraryContext): void
Attributes
chunk:<Chunk>
the chunk
set:
{Set } runtime requirements
libraryContext:
{LibraryContext } context
Returns:
{void}

strictRuntimeBailout(renderContext, libraryContext): void
  • renderContext {RenderContextJavascriptModulesPlugin} render context
  • libraryContext {LibraryContext} context
  • Returns: <string> | <undefined> bailout reason