rustwasm / wasm-bindgen

Facilitating high-level interactions between Wasm modules and JavaScript
https://rustwasm.github.io/docs/wasm-bindgen/
Apache License 2.0
7.83k stars 1.08k forks source link

Revert bundler target specific default transformations #4253

Open daxpedda opened 2 weeks ago

daxpedda commented 2 weeks ago

webpack now supports the reference type proposal, so there is no need to not enable reference type transformations when enabled via the target_features section.

See #4235.

daxpedda commented 2 weeks ago

So I did think that this is resolved now in webpack, but I have no clue how to make wasm-pack make use of that fix. See https://github.com/webpack/webpack/issues/15566.

daxpedda commented 1 week ago

Fixed in https://github.com/webpack/webpack/pull/18979. Going to wait for it to merge and release.

I also went ahead and removed the wasm2js example, as it doesn't support reference-types and there are no plans to add support.