From 0e21977705cab220ee026f48c5e477e195d83593 Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Thu, 17 Oct 2024 14:12:21 +0800 Subject: [PATCH] chore: update build script --- crates/loro-wasm/scripts/build.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/loro-wasm/scripts/build.ts b/crates/loro-wasm/scripts/build.ts index ae1ff8ce..4bfa77e9 100644 --- a/crates/loro-wasm/scripts/build.ts +++ b/crates/loro-wasm/scripts/build.ts @@ -42,9 +42,9 @@ async function build() { // const snip = `wasm-snip ./${target}/loro_wasm_bg.wasm -o ./${target}/loro_wasm_bg.wasm`; // console.log(">", snip); // await Deno.run({ cmd: snip.split(" "), cwd: LoroWasmDir }).status(); - const cmd = `wasm-opt -Os ./${target}/loro_wasm_bg.wasm -o ./${target}/loro_wasm_bg.wasm`; - console.log(">", cmd); - await Deno.run({ cmd: cmd.split(" "), cwd: LoroWasmDir }).status(); + // const cmd = `wasm-opt -O4 ./${target}/loro_wasm_bg.wasm -o ./${target}/loro_wasm_bg.wasm`; + // console.log(">", cmd); + // await Deno.run({ cmd: cmd.split(" "), cwd: LoroWasmDir }).status(); }), ); }