Initialize the WASM module once (idempotent). In a browser, call with no arguments — wasm-bindgen resolves the .wasm via import.meta.url. In Node (or any non-bundler host), pass the .wasm bytes (a BufferSource) or a URL.
.wasm
import.meta.url
BufferSource
Optional
Initialize the WASM module once (idempotent). In a browser, call with no arguments — wasm-bindgen resolves the
.wasmviaimport.meta.url. In Node (or any non-bundler host), pass the.wasmbytes (aBufferSource) or a URL.