new JavascriptModulesPlugin(options?): JavascriptModulesPlugin
objectJavascriptModulesPluginobject(chunk: Chunk, chunkGraph: ChunkGraph) => boolean(compilation: Compilation) => CompilationHooksJavascriptModulesPluginapply(compiler): void
Applies the plugin by registering its hooks on the compiler.
renderBootstrap(renderContext, hooks): Bootstrap
RenderBootstrapContextBootstrapRenders the generated source of the bootstrap code.
renderChunk(renderContext, hooks): Source
RenderContextJavascriptModulesPluginSourceRenders the rendered source.
renderMain(renderContext, hooks, compilation): Source
MainRenderContextCompilationSourceRenders the newly generated source from rendering.
renderModule(module, renderContext, hooks): Source | null
Renders the newly generated source from rendering.
renderRequire(renderContext, hooks): string
RenderBootstrapContextstringRenders the generated source of the require function.
updateHashWithBootstrap(hash, renderContext, hooks): void
Updates 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