new JavascriptModulesPlugin(options?): JavascriptModulesPluginobjectJavascriptModulesPluginobject(chunk: Chunk, chunkGraph: ChunkGraph) => boolean(compilation: Compilation) => CompilationHooksJavascriptModulesPluginapply(compiler): voidApplies the plugin by registering its hooks on the compiler.
renderBootstrap(renderContext, hooks): BootstrapRenderBootstrapContextBootstrapRenders the generated source of the bootstrap code.
renderChunk(renderContext, hooks): SourceRenderContextJavascriptModulesPluginSourceRenders the rendered source.
renderMain(renderContext, hooks, compilation): SourceMainRenderContextCompilationSourceRenders the newly generated source from rendering.
renderModule(module, renderContext, hooks): Source | nullModuleModuleRenderContextSource | nullRenders the newly generated source from rendering.
renderRequire(renderContext, hooks): stringRenderBootstrapContextstringRenders the generated source of the require function.
updateHashWithBootstrap(hash, renderContext, hooks): voidUpdates hash with bootstrap.
ChunkOutputNormalizedWithDefaultsChunkFilenameTemplateGets chunk filename template.
Renames an inlined module's top-level declaration (and all its references) when
its name is already taken in the shared startup scope, recording the chosen name
in allUsedNames. Lets inlined modules be emitted without a per-entry/per-chunk
IIFE by resolving name collisions instead of isolating each module.
SyncHook<[Chunk, Hash, ChunkHashContext]>SyncBailHook<[Module, RenderContextJavascriptModulesPlugin], string | void>SyncBailHook<[Module, Partial<RenderBootstrapContext>], string | void>SyncWaterfallHook<[Source, RenderContextJavascriptModulesPlugin], Source>SyncWaterfallHook<[Source, RenderContextJavascriptModulesPlugin], Source>SyncWaterfallHook<[Source, RenderContextJavascriptModulesPlugin], Source>SyncWaterfallHook<[Source, RenderContextJavascriptModulesPlugin], Source>SyncWaterfallHook<[Source, Module, ModuleRenderContext], Source>SyncWaterfallHook<[Source, Module, ModuleRenderContext], Source>SyncWaterfallHook<[Source, Module, ModuleRenderContext], Source>SyncWaterfallHook<[string, RenderBootstrapContext], string>SyncWaterfallHook<[Source, Module, StartupRenderContext], Source>SyncBailHook<[RenderContextJavascriptModulesPlugin], string | void>SyncBailHook<[Chunk, RenderContextJavascriptModulesPlugin], boolean | void>Renames an inlined module's top-level declaration (and all its references) when
its name is already taken in the shared startup scope, recording the chosen name
in allUsedNames. Lets inlined modules be emitted without a per-entry/per-chunk
IIFE by resolving name collisions instead of isolating each module.
ChunkChunkGraphCodeGenerationResultsDependencyTemplatesstringModuleGraphRuntimeTemplateboolean