Skip to content

Commit 4672591

Browse files
committed
chore: Optimize WASM for size
1 parent b1072c1 commit 4672591

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wasm/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ serde_json = "1"
3232
wasm-bindgen-test = "0.3.0"
3333

3434
[profile.release]
35+
opt-level = "z"
3536
codegen-units = 1
3637
lto = "fat"
3738

3839
[package.metadata.wasm-pack.profile.release]
39-
wasm-opt = ["-O4", "--enable-mutable-globals"]
40+
wasm-opt = ["-Oz", "--enable-mutable-globals"]

0 commit comments

Comments
 (0)