- Download javy from https://github.com/Shopify/javy/releases/latest
- ./javy compile fib.js -o fib.wasm
- node server.js
Note: In order to support node modules, you need to use a bundler to include every module in 1 file and then compile to wasm. ref: bytecodealliance/javy#265
More info: https://nodejs.org/api/wasi.html