On this page

new AsyncWebAssemblyModulesPlugin(options): void
  • options {AsyncWebAssemblyModulesPluginOptions}
webpack.wasm.AsyncWebAssemblyModulesPlugin.apply(compiler): void
Attributes
compiler:<Compiler>
the compiler instance
Returns:
{void}

Apply the plugin


webpack.wasm.AsyncWebAssemblyModulesPlugin.renderModule(module, renderContext, hooks): Source
Attributes
module:<Module>
the rendered module
renderContext:
{WebAssemblyRenderContext} options object
hooks:
{CompilationHooksAsyncWebAssemblyModulesPlugin} hooks
Returns:<Source>
the newly generated source from rendering

webpack.wasm.AsyncWebAssemblyModulesPlugin.getCompilationHooks(compilation): CompilationHooksAsyncWebAssemblyModulesPlugin
Attributes
compilation:<Compilation>
the compilation
Returns:
{CompilationHooksAsyncWebAssemblyModulesPlugin} the attached hooks