rspack icon indicating copy to clipboard operation
rspack copied to clipboard

[Tracking]: Wasm and WebContainer Support

Open hardfist opened this issue 2 years ago • 6 comments

What subject does this issue tracking?

WebContainer is very helpful for showing examples on rspack website

[Wasm and WebContainer Support]

### Tasks
- [ ] napi-rs wasm support https://github.com/napi-rs/napi-rs/pull/1669
- [ ] build Rspack wasm target
- [ ] integrate Rspack on Stackblitz
- [ ] run stackblitz example on rspack website

hardfist avatar Nov 07 '23 06:11 hardfist

this is for someone who is interested in wasm integration

hardfist avatar Nov 07 '23 07:11 hardfist

Any plans for this support? I believe it is required for Rspack/Rsbuild to work inside Stackblitz (as you have already mentioned inside this ticket: #2986 ) I will try to run Rsbuild inside codesandbox but I much prefer Stackblitz as it's much faster and has much better "free" version.

Error for reference:

error   Failed to start dev server.
error   Cannot load native addon because loading addons is disabled: /home/projects/vitejs-vite-uweorw/node_modules/.pnpm/@[email protected]/node_modules/@rspack/binding-linux-x64-musl/rspack.linux-x64-musl.node
    at process.dlopen (https://vitejsviteuweorw-hze5.w-credentialless-staticblitz.com/blitz.7dbe22a9.js:352:50349)
    at Module._extensions..node (https://vitejsviteuweorw-hze5.w-credentialless-staticblitz.com/blitz.7dbe22a9.js:54:15934)
    at Module.load (https://vitejsviteuweorw-hze5.w-credentialless-staticblitz.com/blitz.7dbe22a9.js:54:13457)
    at Module._load (https://vitejsviteuweorw-hze5.w-credentialless-staticblitz.com/blitz.7dbe22a9.js:54:10535)
    at Module.require (https://vitejsviteuweorw-hze5.w-credentialless-staticblitz.com/blitz.7dbe22a9.js:54:13775)
    at i (https://vitejsviteuweorw-hze5.w-credentialless-staticblitz.com/blitz.7dbe22a9.js:98:2198)
    at _0x13b05e (https://vitejsviteuweorw-hze5.w-credentialless-staticblitz.com/blitz.7dbe22a9.js:352:193518)
    at Object.eval (file:///home/projects/vitejs-vite-uweorw/node_modules/.pnpm/@[email protected]/node_modules/@rspack/binding/binding.js:152:31)
    at Object.function (https://vitejsviteuweorw-hze5.w-credentialless-staticblitz.com/blitz.7dbe22a9.js:352:194333)
    at Module._compile (https://vitejsviteuweorw-hze5.w-credentialless-staticblitz.com/blitz.7dbe22a9.js:54:14871)
 ELIFECYCLE  Command failed with exit code 1.

hussain-nz avatar Apr 15 '24 05:04 hussain-nz

we will support wasm but it's low priority

hardfist avatar Apr 15 '24 06:04 hardfist

we will support wasm but it's low priority

I hope this feature comes sooner rather than later

busy-dog avatar Jun 24 '24 03:06 busy-dog

Update: https://x.com/ScriptedAlchemy/status/1805779131365490778

image

chenjiahan avatar Jun 26 '24 06:06 chenjiahan

👍

This will indeed be very useful.

sumitparakh avatar Jan 14 '25 17:01 sumitparakh

close in favor of #9134

hardfist avatar Jun 30 '25 03:06 hardfist