Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Releases: vitejs/vite-plugin-react-swc

v2.2.1

02 Nov 00:12

Choose a tag to compare

Skip react-refresh on SSR (Fixes #2)

v2.2.0

30 Oct 02:25

Choose a tag to compare

  • Always provide parser options to fix issue with .jsx imports. 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

22 Oct 00:25

Choose a tag to compare

Add source maps support

v2.0.3

27 Sep 16:46

Choose a tag to compare

Include react/jsx-dev-runtime for dependencies optimisation when using automatic runtime.

v2.0.2

30 Aug 14:21

Choose a tag to compare

Unpinned @swc/core to get new features (like TS instantiation expression) despite a 30mb bump of bundle size

v2.0.1

27 Aug 23:48

Choose a tag to compare

Fix esbuild property in documentation.

v2.0.0

09 Aug 16:08

Choose a tag to compare

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

19 Jul 17:03

Choose a tag to compare

  • Add vite as peer dependency
  • Pin @swc/core version to 1.2.141 to avoid a 30mb bump of bundle size

v0.1.1

30 Jan 19:18

Choose a tag to compare

Add LICENSE

v0.1.0

28 Jan 23:50

Choose a tag to compare

Initial release