On this page

new JavascriptModulesPlugin(options?): JavascriptModulesPlugin
Attributes
options:<object>
Attributes
options:<object>
chunkHasJs:<object>
apply(compiler): void
Attributes
compiler:<Compiler>
Returns:
{void}

Applies the plugin by registering its hooks on the compiler.


renderBootstrap(renderContext, hooks): Bootstrap
Attributes
Returns:
{Bootstrap}

Renders the generated source of the bootstrap code.


renderChunk(renderContext, hooks): Source
Attributes
Returns:<Source>

Renders the rendered source.


renderMain(renderContext, hooks, compilation): void

Renders the newly generated source from rendering.


renderModule(module, renderContext, hooks): Source | null
Attributes
Returns:<Source> | <null>

Renders the newly generated source from rendering.


renderRequire(renderContext, hooks): string
Attributes
Returns:<string>

Renders the generated source of the require function.


updateHashWithBootstrap(hash, renderContext, hooks): void
Attributes
Returns:
{void}

Updates hash with bootstrap.


Attributes
chunk:<Chunk>
outputOptions:
{OutputNormalizedWithDefaults}

Gets chunk filename template.


Attributes
compilation:<Compilation>

Returns the attached hooks.