parcel-transformer-wat
v2.5.0-5
Published
Parcel transformer plugin for WAT to WASM
Downloads
4
Readme
parcel-transformer-wat
This is plugin for parcel that compiles wat files to wasm, thanks to wabt.js
install
npm i -D parcel-transformer-wat
config
.parcelrc
{
"extends": "@parcel/config-default",
"transformers": {
"*.wat": ["parcel-transformer-wat"]
}
}
usage
import foo from './foo.wat'
let wasm = await WebAssembly.instantiate(foo)
Plugin contain simple example on git repo.