Wasm modules#¶
Stability: 1 - Experimental
Importing WebAssembly modules is supported under the --experimental-wasm-modules flag, allowing any .wasm files to be imported as normal modules while also supporting their module imports.
This integration is in line with the ES Module Integration Proposal for WebAssembly.
For example, an index.mjs containing:
1 2 | |
executed under:
1 | |
would provide the exports interface for the instantiation of module.wasm.