Home > @playerony/wasm-loader
wasm-loader package
Wrapper for @assemblyscript/loader package to support older versions of Safari (desktop [3.1 - 14.1] / mobile [11 - 14.7]).
Functions
Function |
Description |
wasmLoader(defaultImports) |
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. |
Type Aliases
Type Alias |
Description |
TImports |
WebAssembly imports with an optional env object and two levels of nesting. |
TWasmFetcher |
Asynchronously instantiates an AssemblyScript module from anything that can be instantiated. |