Skip to content

Releases: vitejs/vite-plugin-react-swc

v2.0.2

30 Aug 14:21
Compare
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
Compare
Choose a tag to compare

Fix esbuild property in documentation.

v2.0.0

09 Aug 16:08
Compare
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
Compare
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
Compare
Choose a tag to compare

Add LICENSE

v0.1.0

28 Jan 23:50
Compare
Choose a tag to compare

Initial release