new AsyncWebAssemblyModulesPlugin(options): AsyncWebAssemblyModulesPluginAttributes
options
Returns:
AsyncWebAssemblyModulesPluginCreates an instance of AsyncWebAssemblyModulesPlugin.
Attributes
apply(compiler): voidAttributes
Applies the plugin by registering its hooks on the compiler.
renderModule(module, renderContext, hooks): SourceAttributes
module:
Modulethe rendered module
renderContext:
WebAssemblyRenderContextoptions object
Returns:
Sourcethe newly generated source from rendering
Renders the newly generated source from rendering.
Attributes
compilation:
Compilationthe compilation
the attached hooks
Returns the attached hooks.
Attributes
mangleImports:
booleanmangle imports
Attributes
renderModuleContent:
SyncWaterfallHook<[Source, Module, WebAssemblyRenderContext], Source>Attributes
chunk:
Chunkthe chunk
chunkGraph:
ChunkGraphthe chunk graph
codeGenerationResults:
CodeGenerationResultsresults of code generation
dependencyTemplates:
DependencyTemplatesthe dependency templates
moduleGraph:
ModuleGraphthe module graph
runtimeTemplate:
RuntimeTemplatethe runtime template