new JavascriptModulesPlugin(options?): JavascriptModulesPluginAttributes
options:
<object>Returns:
<JavascriptModulesPlugin>Attributes
options:
<object>chunkHasJs:
<Function>apply(compiler): voidAttributes
compiler:
<Compiler>Returns:
<void>Applies the plugin by registering its hooks on the compiler.
renderBootstrap(renderContext, hooks): BootstrapAttributes
renderContext:
<RenderBootstrapContext>Returns:
<Bootstrap>Renders the generated source of the bootstrap code.
renderChunk(renderContext, hooks): SourceAttributes
renderContext:
<RenderContextJavascriptModulesPlugin>Returns:
<Source>Renders the rendered source.
renderMain(renderContext, hooks, compilation): SourceAttributes
Renders the newly generated source from rendering.
renderModule(module, renderContext, hooks): Source | nullAttributes
module:
<Module>renderContext:
<ModuleRenderContext>Renders the newly generated source from rendering.
renderRequire(renderContext, hooks): stringAttributes
renderContext:
<RenderBootstrapContext>Returns:
<string>Renders the generated source of the require function.
updateHashWithBootstrap(hash, renderContext, hooks): voidAttributes
Updates hash with bootstrap.
Attributes
Gets chunk filename template.
Attributes
compilation:
<Compilation>Returns the attached hooks.
Attributes
chunkHash<SyncHook><<Tuple><<Chunk>,<Hash>,<ChunkHashContext>>>embedInRuntimeBailout<SyncBailHook><<Tuple><<Module>,<RenderContextJavascriptModulesPlugin>>,<string>|<void>>inlineInRuntimeBailout<SyncBailHook><<Tuple><<Module>,<Partial><<RenderBootstrapContext>>>,<string>|<void>>render<SyncWaterfallHook><<Tuple><<Source>,<RenderContextJavascriptModulesPlugin>>,<Source>>renderChunk<SyncWaterfallHook><<Tuple><<Source>,<RenderContextJavascriptModulesPlugin>>,<Source>>renderContent<SyncWaterfallHook><<Tuple><<Source>,<RenderContextJavascriptModulesPlugin>>,<Source>>renderMain<SyncWaterfallHook><<Tuple><<Source>,<RenderContextJavascriptModulesPlugin>>,<Source>>renderModuleContainer<SyncWaterfallHook><<Tuple><<Source>,<Module>,<ModuleRenderContext>>,<Source>>renderModuleContent<SyncWaterfallHook><<Tuple><<Source>,<Module>,<ModuleRenderContext>>,<Source>>renderModulePackage<SyncWaterfallHook><<Tuple><<Source>,<Module>,<ModuleRenderContext>>,<Source>>renderRequire<SyncWaterfallHook><<Tuple><<string>,<RenderBootstrapContext>>,<string>>renderStartup<SyncWaterfallHook><<Tuple><<Source>,<Module>,<StartupRenderContext>>,<Source>>strictRuntimeBailout<SyncBailHook><<Tuple><<RenderContextJavascriptModulesPlugin>>,<string>|<void>>useSourceMap<SyncBailHook><<Tuple><<Chunk>,<RenderContextJavascriptModulesPlugin>>,<boolean>|<void>>
Attributes
chunk:
<Chunk>the chunk
chunkGraph:
<ChunkGraph>the chunk graph
codeGenerationResults:
<CodeGenerationResults>results of code generation
dependencyTemplates:
<DependencyTemplates>the dependency templates
hash:
<string>hash to be used for render call
moduleGraph:
<ModuleGraph>the module graph
runtimeTemplate:
<RuntimeTemplate>the runtime template
strictMode:
<boolean>rendering in strict context