This repository was archived by the owner on Jul 24, 2025. It is now read-only.
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" },