new JavascriptModulesPlugin(options?): JavascriptModulesPluginAttributes
options:
<object>Returns:
{JavascriptModulesPlugin}
Attributes
webpack.JavascriptModulesPlugin.apply(compiler): voidcompiler{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): voidmodule{Module} the rendered modulerenderContext{ModuleRenderContext} options objecthooks{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): voidchunk{Chunk} chunkoutputOptions{OutputNormalizedWithDefaults} output options- Returns: {TemplatePath} used filename template
webpack.JavascriptModulesPlugin.getCompilationHooks(compilation): voidcompilation{Compilation} the compilation- Returns: {CompilationHooksJavascriptModulesPlugin} the attached hooks