Open huppmann opened 4 years ago
wasm-pack's optimizer fails because of the export of a mutable global:
[INFO]: Optimizing wasm binaries with `wasm-opt`... [wasm-validator error in module] unexpected true: Exported global cannot be mutable, on global$0
The issue is reported here.
I worked around by following the suggestion to add
[package.metadata.wasm-pack.profile.release] wasm-opt = ["-Oz", "--enable-mutable-globals"]
to Cargo.toml.
Don't know if this is a gotcha you'd want to point out in the tutorial. (I ran into it here.). Otherwise, presume you can close and a web search will maybe land people here.
Please don't shorten your links
Longer give more context :-)
wasm-pack's optimizer fails because of the export of a mutable global:
The issue is reported here.
I worked around by following the suggestion to add
to Cargo.toml.
Don't know if this is a gotcha you'd want to point out in the tutorial. (I ran into it here.). Otherwise, presume you can close and a web search will maybe land people here.