silx-kit / h5web

React components for data visualization and exploration
https://h5web.panosc.eu/
MIT License
161 stars 17 forks source link

Switch to `@vitejs/plugin-react-swc` #1638

Closed axelboc closed 1 month ago

axelboc commented 1 month ago

Replace @vitejs/plugin-react, which is based on Babel, with @vitejs/plugin-react-swc, which is based a SWC.

SWC is a Rust-based compiler — some empirical tests seem to confirm that it is indeed faster, shaving a few seconds off pnpm packages, and half a second off pnpm build. Fast refresh does seem a lot faster as well (even though it was already fast enough).