Function getWasmBinary

  • Fetch the raw WASM binary as an ArrayBuffer. Must be called from the main thread (where the bundler resolves import.meta.url). Useful for transferring the binary to a web worker that needs to init WASM without being able to resolve the file URL itself.

    Returns Promise<ArrayBuffer>