This repository was archived by the owner on Jul 24, 2025. It is now read-only.
Releases: vitejs/vite-plugin-react-swc
Releases · vitejs/vite-plugin-react-swc
v2.2.1
v2.2.0
- Always provide parser options to fix issue with
.jsximports. Relying on file extension for this is more buggy than I though - Extract line and column in SWC errors to make overlay filename clickable
- Fix plugin name (
react-refresh->swc-react-refresh)
v2.1.0
Add source maps support
v2.0.3
Include react/jsx-dev-runtime for dependencies optimisation when using automatic runtime.
v2.0.2
Unpinned @swc/core to get new features (like TS instantiation expression) despite a 30mb bump of bundle size
v2.0.1
Fix esbuild property in documentation.
v2.0.0
Breaking: Use named export instead of default export for better esm/cjs interop.
To migrate, replace your import by import { swcReactRefresh } from "vite-plugin-swc-react-refresh";
The JSX automatic runtime is also now supported if you bump esbuild to at least 0.14.51.
To use it, update your config from esbuild: { jsxInject: 'import React from "react"' }, to esbuild: { jsx: "automatic" },
v0.1.2
- Add vite as peer dependency
- Pin @swc/core version to 1.2.141 to avoid a 30mb bump of bundle size
v0.1.1
Add LICENSE
v0.1.0
Initial release