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): voidrenderContext{RenderContextJavascriptModulesPlugin} the render contexthooks{CompilationHooksJavascriptModulesPlugin} 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
module:
<Module>the rendered module
renderContext:
{ModuleRenderContext} options object
hooks:
{CompilationHooksJavascriptModulesPlugin} hooks
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
Returns:
{CompilationHooksJavascriptModulesPlugin} the attached hooks