tomayac, Pretty excited about the #Wasm ESM integration proposal (https://github.com/WebAssembly/esm-integration/tree/main/proposals/esm-integration) having recently reached Phase 3 status. This will soon make it possible to import #WebAssembly as in the following code sample:
import source wasmModule from "./module.wasm" with { "type": "wasm" } const instance = await WebAssembly.instantiate(wasmModule, {});
If you skip the
source
above, the Wasm module will be instantiated immediately.See https://docs.google.com/presentation/d/1iZzoRE3LhlMuJz8-npW5Kc9GnUydVI6PPj8lgPuwdi4/edit?usp=sharing for more.