wasm-loader

Home > @playerony/wasm-loader > wasmLoader

wasmLoader() function

Closure wrapper to allow user to keep a default imports configuration in memory.

Function use ‘instantiateStreaming’ to process *.wasm file, but if it is not possible to use, we use a ‘instantiate’ function.

Signature:

declare function wasmLoader(defaultImports?: TImports): TWasmFetcher;

Parameters

Parameter Type Description
defaultImports TImports default imports.

Returns:

TWasmFetcher