wasm-opt Command Examples

Optimize WebAssembly binary files. More information: https://github.com/webassembly/binaryen.

wasm-opt -O {{input.wasm}} -o {{output.wasm}}

wasm-opt -O4 {{input.wasm}} -o {{output.wasm}}

wasm-opt -Oz {{input.wasm}} -o {{output.wasm}}

wasm-opt {{input.wasm}} --print