tinygo can reduce the wasm size!
TinyGo command: https://tinygo.org/docs/guides/webassembly/
> cp ../../wasm/tinygo.wasm .
tinygo.wasm: WASM file compiled by tinygo.
> 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
> node index.mjs
- index.mjs: Nodejs using WASM template
- tinygo_wasm_exec.js: same as above