Module

x/wasm/WasmerSDKBundled.ts

Monorepo for Javascript WebAssembly packages by Wasmer
Latest
File
export * from "./WasmerSDK";import { init as load, InitInput, InitOutput } from "./WasmerSDK";// @ts-ignoreimport wasm_bytes from "./pkg/wasmer_js_bg.wasm";
/** * Initialize the underlying WebAssembly module, defaulting to an embedded * copy of the `*.wasm` file. */export const init = async (module_or_path?: InitInput | Promise<InitInput>, maybe_memory?: WebAssembly.Memory): Promise<InitOutput> => { if (!module_or_path) { // @ts-ignore module_or_path = await wasm_bytes(); } return load(module_or_path, maybe_memory);}