Skip to content

Commit 16851d9

Browse files
authored
Pass more size-shrinking options to wasm-opt (#212)
1 parent 056256f commit 16851d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/wasm-node/javascript/prepare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ child_process.execSync(
3434
// use the `.wasm` generated by the Rust compiler.
3535
try {
3636
child_process.execSync(
37-
"wasm-opt -o autogen/tmp.wasm -O ../../../target/wasm32-wasi/release/substrate_lite_js.wasm",
37+
"wasm-opt -o autogen/tmp.wasm -Os --strip-debug --vacuum --dce ../../../target/wasm32-wasi/release/substrate_lite_js.wasm",
3838
{ 'stdio': 'inherit' }
3939
);
4040
} catch(error) {

0 commit comments

Comments
 (0)