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).
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 offpnpm build
. Fast refresh does seem a lot faster as well (even though it was already fast enough).