Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 887 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 887 Bytes

TinyGo

tinygo can reduce the wasm size!

TinyGo command: https://tinygo.org/docs/guides/webassembly/

WASM

> cp ../../wasm/tinygo.wasm .

tinygo.wasm: WASM file compiled by tinygo.

Run on browser

> npm run start
  • index.html: browser using WASM template, run!
  • tinygo_wasm_exec.js: core code WASM run on Node.js and browser. cp $(tinygo env TINYGOROOT)/targets/wasm_exec.js ./tinygo_wasm_exec.js

Run on Node.js

> node index.mjs

QA