On this page

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

Apply the plugin


webpack.wasm.AsyncWebAssemblyModulesPlugin.renderModule(module, renderContext, hooks): void
  • 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): void
  • compilation {Compilation} the compilation
  • Returns: {CompilationHooksAsyncWebAssemblyModulesPlugin} the attached hooks