It might be a good idea to document the production tasks wasmBrowserProductionRun or wasmBrowserDistribution as well as the (commented-out) applyBinaryen() optimization. Without, interested parties end up with a 1MB .wasm file, where the optimized build is 7KB for the hello world example.
It might be a good idea to document the production tasks
wasmBrowserProductionRun
orwasmBrowserDistribution
as well as the (commented-out)applyBinaryen()
optimization. Without, interested parties end up with a 1MB.wasm
file, where the optimized build is 7KB for the hello world example.