Home > @playerony/wasm-loader > wasmLoader
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;
| Parameter | Type | Description |
|---|---|---|
| defaultImports | TImports | default imports. |
Returns: