vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.8k stars 6.22k forks source link

Use rollup/wasm-node #18711

Closed domenkozar closed 5 days ago

domenkozar commented 6 days ago

Describe the bug

Vite is hard to package on platforms that can't use the shipped binaries: https://github.com/vitejs/vite/issues/15122

Using @rollup/wasm-node by default would make a lot of these issues go away.

Reproduction

...

Steps to reproduce

No response

System Info

...

Used Package Manager

npm

Logs

No response

Validations

bluwy commented 5 days ago

You can use overrides to use the wasm version if needed. Wasm tends to run slower than native and I don't think it's fair to force the slower version when most users are able to take advantage of the native ones.