mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 12:57:20 +00:00
chore: update build script
This commit is contained in:
parent
e32fdbf542
commit
0e21977705
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue