On this page

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

Apply the plugin

chunkHash(chunk, hash, chunkHashContext, libraryContext): void
Attributes
chunk:<Chunk>
hash:
{Hash}
chunkHashContext:
{ChunkHashContext}
libraryContext:
{LibraryContext }
Returns:
{void}
embedInRuntimeBailout(module, renderContext, libraryContext): string
Attributes
module:<Module>
renderContext:
{RenderContextJavascriptModulesPlugin}
libraryContext:
{LibraryContext }
Returns:<string>
finishEntryModule(module, entryName, libraryContext): void
Attributes
module:<Module>
entryName:<string>
libraryContext:
{LibraryContext }
Returns:
{void}
parseOptions(library): T
Attributes
Returns:
{T}
render(source, renderContext, libraryContext): void
  • source {Source}
  • renderContext {RenderContextJavascriptModulesPlugin}
  • libraryContext {LibraryContext}
  • Returns: {Source}
renderModuleContent(source, module, renderContext, libraryContext): void
  • source {Source}
  • module <Module>
  • renderContext {ModuleRenderContext}
  • libraryContext {Omit<LibraryContext, "options">}
  • Returns: {Source}
renderStartup(source, module, renderContext, libraryContext): void
  • source {Source}
  • module <Module>
  • renderContext {StartupRenderContext}
  • libraryContext {LibraryContext}
  • Returns: {Source}
runtimeRequirements(chunk, set, libraryContext): void
Attributes
chunk:<Chunk>
set:
{Set }
libraryContext:
{LibraryContext }
Returns:
{void}
strictRuntimeBailout(renderContext, libraryContext): void
  • renderContext {RenderContextJavascriptModulesPlugin}
  • libraryContext {LibraryContext}
  • Returns: <string>

new EnableLibraryPlugin(type, options?): EnableLibraryPlugin
Attributes
options:
{EnableLibraryPluginOptions}
Returns:
{EnableLibraryPlugin}
  • options {EnableLibraryPluginOptions}
  • type <string>
apply(compiler): void
Attributes
compiler:<Compiler>
Returns:
{void}

Apply the plugin

Attributes
compiler:<Compiler>
Returns:
{void}
Attributes
compiler:<Compiler>
Returns:
{void}