1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-05-10 21:07:16 +00:00

15 lines
305 B
Bash
Raw Normal View History

#!/bin/sh
set -ex
# Compile our wasm module and run `wasm-bindgen`
wasm-pack build --target web
2018-09-03 13:56:55 -04:00
# Run the `wasm2js` tool from `binaryen`
wasm2js pkg/wasm2js_bg.wasm -o pkg/wasm2js_bg.js
# Update our JS shim to require the JS file instead
sed -i 's/wasm2js_bg.wasm/wasm2js_bg.js/' pkg/wasm2js.js
http