4 ms·
> we can use the ES module API. With this, working with WebAssembly modules should be as easy as importing them. > import {myFunction} from "myModule.wasm" >
by kiliancs 9y ago
> we can use the ES module API. With this, working with WebAssembly modules should be as easy as importing them.
> import {myFunction} from "myModule.wasm"
> We’re working with TC39 and the WebAssembly community group to standardize this.
Note that this is already possible using Webpack 4.
- steveklabnik 9y agoAnd Parcel, and hopefully others in the future!
- k__ 9y agoDoes it work with Node.js?
- steveklabnik 9y agoYup! The most recent Node LTS includes wasm support without a flag, previous versions required you to include a flag.
- agnivade 9y agoShe does mention that with bundlers, users will still use the ES module syntax.