You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider adding a build script that crashes with a good error message if there is a version mismatch between the wasm-bindgen dependency and wasm-bindgen-cli. Either a build.rs in the bindings/wasm directory or something JS-based in the build folder could work.
Although mainly intended for local development, such a script might help the CI as well since it occasionally falls back to downloading an older version of the cli and the build action then later panics with a rather vague error message.
Whether it would make sense to upstream such a script to wasm-bindgen is not yet clear to me. It is probably not necessary for the many people who build their wasm binaries using wasm-pack.
Motivation
If one attempts to build the bindings using an out-of-sync (or at least older version) of wasm-bindgen-cli than wasm-bindgen a panic with an unhelpful error message occurs. It would be nice to help developers avoid wasting their time debugging this.
Description
Consider adding a build script that crashes with a good error message if there is a version mismatch between the
wasm-bindgen
dependency andwasm-bindgen-cli
. Either abuild.rs
in thebindings/wasm
directory or something JS-based in thebuild
folder could work.Although mainly intended for local development, such a script might help the CI as well since it occasionally falls back to downloading an older version of the
cli
and the build action then later panics with a rather vague error message.Whether it would make sense to upstream such a script to
wasm-bindgen
is not yet clear to me. It is probably not necessary for the many people who build their wasm binaries usingwasm-pack
.Motivation
If one attempts to build the bindings using an out-of-sync (or at least older version) of
wasm-bindgen-cli
thanwasm-bindgen
a panic with an unhelpful error message occurs. It would be nice to help developers avoid wasting their time debugging this.Resources
This issue in the wasm-bindgen repo is somewhat related.
To-do list
Create a task-specific to-do list. Please link PRs that match the TODO list item behind the item after it has been submitted.
Change checklist
Add an
x
to the boxes that are relevant to your changes, and delete any items that are not.The text was updated successfully, but these errors were encountered: