On this page

Source Code: lib/wasm/EnableWasmLoadingPlugin.js#L36

Validates and enables named wasm loading backends by applying the plugin implementations that provide their runtime support.

new EnableWasmLoadingPlugin(type): EnableWasmLoadingPlugin
Source Code: lib/wasm/EnableWasmLoadingPlugin.js#L42
Attributes

Stores the wasm loading backend name that should be enabled for the compiler.

Source Code: lib/wasm/EnableWasmLoadingPlugin.js#L44
Type:string
enableWasmLoadingPlugin.apply(compiler): void
Source Code: lib/wasm/EnableWasmLoadingPlugin.js#L84
Attributes
compiler:Compiler

Enables the requested wasm loading backend once and applies the environment-specific plugins that provide its parser, generator, and runtime support.

EnableWasmLoadingPlugin.checkEnabled(compiler, type): void
Source Code: lib/wasm/EnableWasmLoadingPlugin.js#L65
Attributes
compiler:Compiler
type:string

Verifies that a wasm loading type has been enabled before code generation attempts to use it.

EnableWasmLoadingPlugin.setEnabled(compiler, type): void
Source Code: lib/wasm/EnableWasmLoadingPlugin.js#L54
Attributes
compiler:Compiler
type:string

Marks a custom or built-in wasm loading type as enabled for the compiler without applying additional built-in behavior.