On this page

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

Apply the plugin


webpack.library.AbstractLibraryPlugin.chunkHash(chunk, hash, chunkHashContext, libraryContext): void
  • chunk {Chunk} the chunk
  • hash {Hash} hash
  • chunkHashContext {ChunkHashContext} chunk hash context
  • libraryContext {LibraryContext} context
  • Returns: {void}

webpack.library.AbstractLibraryPlugin.embedInRuntimeBailout(module, renderContext, libraryContext): void
  • module {Module} the exporting entry module
  • renderContext {RenderContextJavascriptModulesPlugin} render context
  • libraryContext {LibraryContext} context
  • Returns: <string> bailout reason

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

webpack.library.AbstractLibraryPlugin.parseOptions(library): void
  • library {LibraryOptions} normalized library option
  • Returns: {T} preprocess as needed by overriding

webpack.library.AbstractLibraryPlugin.render(source, renderContext, libraryContext): void
  • source {Source} source
  • renderContext {RenderContextJavascriptModulesPlugin} render context
  • libraryContext {LibraryContext} context
  • Returns: {Source} source with library export

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

webpack.library.AbstractLibraryPlugin.renderStartup(source, module, renderContext, libraryContext): void
  • source {Source} source
  • module {Module} module
  • renderContext {StartupRenderContext} render context
  • libraryContext {LibraryContext} context
  • Returns: {Source} source with library export

webpack.library.AbstractLibraryPlugin.runtimeRequirements(chunk, set, libraryContext): void
  • chunk {Chunk} the chunk
  • set {Set} runtime requirements
  • libraryContext {LibraryContext} context
  • Returns: {void}

webpack.library.AbstractLibraryPlugin.strictRuntimeBailout(renderContext, libraryContext): void
  • renderContext {RenderContextJavascriptModulesPlugin} render context
  • libraryContext {LibraryContext} context
  • Returns: <string> bailout reason