On this page

new AsyncWebAssemblyModulesPlugin(options): AsyncWebAssemblyModulesPlugin
Attributes

Creates an instance of AsyncWebAssemblyModulesPlugin.

Attributes
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.


renderModule(module, renderContext, hooks): Source
Attributes
module:Module
the rendered module
options object
Returns:Source
the newly generated source from rendering

Renders the newly generated source from rendering.


Attributes
compilation:Compilation
the compilation

Returns the attached hooks.

Attributes
mangleImports:boolean
mangle imports

Attributes
renderModuleContent:SyncWaterfallHook<[Source, Module, WebAssemblyRenderContext], Source>

Attributes
chunk:Chunk
the chunk
chunkGraph:ChunkGraph
the chunk graph
codeGenerationResults:CodeGenerationResults
results of code generation
dependencyTemplates:DependencyTemplates
the dependency templates
moduleGraph:ModuleGraph
the module graph
runtimeTemplate:RuntimeTemplate
the runtime template