rspack
rspack copied to clipboard
[Feature Request]: Native WebAssembly Support
What problem does this feature solve?
Currently Rspack doesn't support load *.wasm file:
I just created a reproduction here: https://github.com/ulivz/rusty-react, reproduction steps are as follows:
git clone [email protected]:joshfinnie/rusty-react.git
cd rusty-react
pnpm i
pnpm run dev
Refs:
- Rspack: https://github.com/web-infra-dev/rspack/blob/b4f206819061e0d6efd19b33886aad9430478f49/crates/node_binding/src/js_values/source.rs#L69-L72
- Webpack: https://github.com/webpack/webpack/blob/main/lib/wasm-sync/WebAssemblyParser.js
What does the proposed API of configuration look like?
- Introduce native WebAssembly support like Webpack.
- Introduce experiments.asyncWebAssembly support.
@hardfist hi,guys I'm very interested in this feature, can you assign it to me?
go ahead!