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