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
wasm-bingen seems to have recently gained support for deno target, but the option is not forwarded to it by wasm-pack.
I have quickly hacked a patch which seems to work at first glance. It does a bit more than required, even: for example, it generates a package.json, which Deno doesn't use.
I could work on a PR, but consider the fact that I only had a proper look at Deno yesterday.
🐛 Bug description
I saw this https://rustwasm.github.io/docs/wasm-bindgen/reference/deployment.html#deno mentioning that you could pass
--target deno
and build to Deno. I tried:and got
🤔 Expected Behavior
A package suitable to be used in Deno should've been created.
👟 Steps to reproduce
Edit
src/lib.rs
and replace its contents with:Edit
Cargo.toml
and merge:Then run
🌍 Your environment
wasm-pack version: 0.9.1
rustc version: 1.44.1
Notes
The tool
ssvmup
can successfully convert the same code to a package that's usable by Deno, with a similar commandssvmup build --target deno
.The text was updated successfully, but these errors were encountered: