brotli-wasm
brotli-wasm copied to clipboard
Upgrade wasm-bindgen so `initSync` is generated
It seems like adding wasm-opt = false is perfectly fine. With it, we get an error:
[parse exception: Only 1 table definition allowed in MVP (at 0:2303)]
Fatal: error in parsing input
Error: failed to execute `wasm-opt`: exited with exit status: 1
full command: "/home/kyle/.cache/.wasm-pack/wasm-opt-4d7a65327e9363b7/wasm-opt" "/home/kyle/projects/kylecarbs/brotli-wasm/pkg/brotli_wasm_bg.wasm" "-o" "/home/kyle/projects/kylecarbs/brotli-wasm/pkg/brotli_wasm_bg.wasm-opt.wasm" "-O"
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
I haven't spent time investigating why this fails, so possible the fix is simple.