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

Commit 5e2a308

Browse files
committed
release: v3.0.0
1 parent 7aca00b commit 5e2a308

File tree

4 files changed

+240
-230
lines changed

4 files changed

+240
-230
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 3.0.0
4+
5+
This is plugin is now stable! 🎉
6+
7+
To migrate from `vite-plugin-swc-react-refresh`, see the `3.0.0-beta.0` changelog.
8+
39
## 3.0.0-beta.2
410

511
- breaking: update plugin name to `vite:react-swc` to match official plugins naming

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ Speed up your Vite dev server with [SWC](https://swc.rs/)
55
- ✅ A fast Fast Refresh (~20x faster than Babel)
66
- ✅ Enable [automatic JSX runtime](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html)
77

8-
> ⚠️ This is a beta release for Vite 4, for the v2 named `vite-plugin-swc-react-refresh`, see the [v2 branch](https://github.com/vitejs/vite-plugin-react-swc/tree/v2).
9-
108
## Installation
119

1210
```sh
@@ -43,3 +41,9 @@ For React refresh to work correctly, your file should only export React componen
4341
If an incompatible change in exports is found, the module will be invalidated and HMR will propagate. To make it easier to export simple constants alongside your component, the module is only invalidated when their value changes.
4442

4543
You can catch mistakes and get more detailed warning with this [eslint rule](https://github.com/ArnaudBarre/eslint-plugin-react-refresh).
44+
45+
## Migrating from `vite-plugin-swc-react-refresh`
46+
47+
The documentation for the previous version of the plugin is available in the [v2 branch](https://github.com/vitejs/vite-plugin-react-swc/tree/v2)
48+
49+
To migrate, see this [changelog](https://github.com/vitejs/vite-plugin-react-swc/releases/tag/v3.0.0-beta.0)

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vitejs/plugin-react-swc",
3-
"version": "3.0.0-beta.2",
3+
"version": "3.0.0",
44
"license": "MIT",
55
"scripts": {
66
"dev": "scripts/bundle.ts --dev",
@@ -17,17 +17,17 @@
1717
"@swc/core": "^1.3.21"
1818
},
1919
"peerDependencies": {
20-
"vite": "^4.0.0-alpha.5"
20+
"vite": "^4.0.0"
2121
},
2222
"devDependencies": {
23-
"@nabla/tnode": "^0.7.0",
23+
"@nabla/tnode": "^0.8.0",
2424
"@playwright/test": "^1.28.1",
2525
"@types/fs-extra": "^9.0.13",
2626
"@types/node": "^18.11.10",
27-
"esbuild": "^0.15.18",
27+
"esbuild": "^0.16.3",
2828
"fs-extra": "^11.1.0",
2929
"prettier": "^2.8.0",
3030
"typescript": "^4.9.3",
31-
"vite": "^4.0.0-alpha.6"
31+
"vite": "^4.0.0"
3232
}
3333
}

0 commit comments

Comments
 (0)