diff --git a/bin/wasm-node/javascript/prepare.js b/bin/wasm-node/javascript/prepare.js index 56f1541e88..b64ba0e034 100755 --- a/bin/wasm-node/javascript/prepare.js +++ b/bin/wasm-node/javascript/prepare.js @@ -34,7 +34,7 @@ child_process.execSync( // use the `.wasm` generated by the Rust compiler. try { child_process.execSync( - "wasm-opt -o autogen/tmp.wasm -O ../../../target/wasm32-wasi/release/substrate_lite_js.wasm", + "wasm-opt -o autogen/tmp.wasm -Os --strip-debug --vacuum --dce ../../../target/wasm32-wasi/release/substrate_lite_js.wasm", { 'stdio': 'inherit' } ); } catch(error) {