mozilla / standards-positions

https://mozilla.github.io/standards-positions/
Mozilla Public License 2.0
650 stars 71 forks source link

WebAssembly ESM Integration #1038

Open guybedford opened 4 months ago

guybedford commented 4 months ago

Request for Mozilla Position on an Emerging Web Specification

Other information

The WebAssembly ESM Integration allows JS modules to import Wasm and vice versa, providing improved ergonomics and tooling workflows when working with WebAssembly modules. With Source Phase Imports it also allows the ability to import uninstantiated Wasm through the module system enabling these benefits for the full range of instantiation workflows. While it has been in development for some time, it was recently progressed to Phase 3 in the WebAssembly process.

eqrion commented 4 months ago

I've been in support of this proposal when paired with source phase imports. It could help improve tooling for developers by giving them a declarative way to get wasm modules/instances instead of having to use the imperative WebAssembly JS-API.