denoland / wasmbuild

Build tool to use Rust code in Deno and the browser.
MIT License
283 stars 23 forks source link

Add support for output with wasm imports #145

Open dsherret opened 1 day ago

dsherret commented 1 day ago

We should support wasm imports in the output now that it's stable.

It seems there is this: https://docs.rs/wasm-bindgen-cli-support/0.2.95/wasm_bindgen_cli_support/struct.Bindgen.html#method.nodejs_module (maybe there is a web version or a web version would be easy to implement)

0f-0b commented 1 day ago

It appears that the default output format (bundler) already uses Wasm imports and is compatible with node --experimental-wasm-modules. However, I ran into denoland/deno_core#974 when trying to use it with Deno.

dsherret commented 1 day ago

Thanks! We'll have it fixed in the patch release next week.

dsherret commented 14 hours ago

Should be fixed now in deno canary (deno upgrade canary)