new JavascriptModulesPlugin(options?): JavascriptModulesPluginAttributes
options:
<object>Returns:
<JavascriptModulesPlugin>Attributes
apply(compiler): voidAttributes
compiler:
<Compiler>the compiler instance
Returns:
{void}
Apply the plugin
renderBootstrap(renderContext, hooks): voidrenderContext{RenderBootstrapContext} options objecthooks<CompilationHooksJavascriptModulesPlugin>hooks- Returns: {Bootstrap} the generated source of the bootstrap code
renderChunk(renderContext, hooks): SourceAttributes
renderContext:
<RenderContextJavascriptModulesPlugin>the render context
hooks
Returns:
<Source>the rendered source
renderMain(renderContext, hooks, compilation): voidrenderContext{MainRenderContext} options objecthooks<CompilationHooksJavascriptModulesPlugin>hookscompilation<Compilation>the compilation- Returns:
<Source>the newly generated source from rendering
renderModule(module, renderContext, hooks): Source | nullAttributes
renderRequire(renderContext, hooks): voidrenderContext{RenderBootstrapContext} options objecthooks<CompilationHooksJavascriptModulesPlugin>hooks- Returns:
<string>the generated source of the require function
updateHashWithBootstrap(hash, renderContext, hooks): voidhash{Hash} the hash to be updatedrenderContext{RenderBootstrapContext} options objecthooks<CompilationHooksJavascriptModulesPlugin>hooks- Returns: {void}
Attributes
chunk:
<Chunk>chunk
outputOptions:
{OutputNormalizedWithDefaults} output options
Returns:
<TemplatePath>used filename template
Attributes
compilation:
<Compilation>the compilation
the attached hooks