Skip to content

Commit

Permalink
Fix "wasm-opt: Exported global cannot be mutable" error
Browse files Browse the repository at this point in the history
  • Loading branch information
tie-rack committed Dec 14, 2020
1 parent 6f8113c commit 6f2c856
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pnglitch-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ wee_alloc = { version = "0.4.5", optional = true }

[features]
default = ["console_error_panic_hook", "wee_alloc"]

[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O3", "--enable-mutable-globals"]

0 comments on commit 6f2c856

Please sign in to comment.