new JavascriptModulesPlugin(options?): JavascriptModulesPluginAttributes
options:
<object>Returns:
<JavascriptModulesPlugin>Attributes
apply(compiler): voidAttributes
compiler:
<Compiler>Returns:
{void}
Applies the plugin by registering its hooks on the compiler.
renderBootstrap(renderContext, hooks): voidrenderContext{RenderBootstrapContext}hooks{CompilationHooksJavascriptModulesPlugin}- Returns: {Bootstrap}
Renders the generated source of the bootstrap code.
renderChunk(renderContext, hooks): voidrenderContext{RenderContextJavascriptModulesPlugin}hooks{CompilationHooksJavascriptModulesPlugin}- Returns:
<Source>
Renders the rendered source.
renderMain(renderContext, hooks, compilation): voidrenderContext{MainRenderContext}hooks{CompilationHooksJavascriptModulesPlugin}compilation<Compilation>- Returns:
<Source>
Renders the newly generated source from rendering.
renderModule(module, renderContext, hooks): Source | nullAttributes
Renders the newly generated source from rendering.
renderRequire(renderContext, hooks): voidrenderContext{RenderBootstrapContext}hooks{CompilationHooksJavascriptModulesPlugin}- Returns:
<string>
Renders the generated source of the require function.
updateHashWithBootstrap(hash, renderContext, hooks): voidhash{Hash}renderContext{RenderBootstrapContext}hooks{CompilationHooksJavascriptModulesPlugin}- Returns: {void}
Updates hash with bootstrap.
Attributes
chunk:
<Chunk>outputOptions:
{OutputNormalizedWithDefaults}
Returns:
{ChunkFilenameTemplate}
Gets chunk filename template.
Attributes
compilation:
<Compilation>Returns:
{CompilationHooksJavascriptModulesPlugin}
Returns the attached hooks.