Skip to content

Commit 6f2c856

Browse files
committed
Fix "wasm-opt: Exported global cannot be mutable" error
See: drager/wasm-pack#886
1 parent 6f8113c commit 6f2c856

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pnglitch-wasm/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ wee_alloc = { version = "0.4.5", optional = true }
3333

3434
[features]
3535
default = ["console_error_panic_hook", "wee_alloc"]
36+
37+
[package.metadata.wasm-pack.profile.release]
38+
wasm-opt = ["-O3", "--enable-mutable-globals"]

0 commit comments

Comments
 (0)