@vitejs/plugin-react-swc 3.0.0-beta.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -5,8 +5,6 @@ Speed up your Vite dev server with [SWC](https://swc.rs/)
5
5
  - ✅ A fast Fast Refresh (~20x faster than Babel)
6
6
  - ✅ Enable [automatic JSX runtime](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html)
7
7
 
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
-
10
8
  ## Installation
11
9
 
12
10
  ```sh
@@ -43,3 +41,9 @@ For React refresh to work correctly, your file should only export React componen
43
41
  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.
44
42
 
45
43
  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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitejs/plugin-react-swc",
3
3
  "description": "Speed up your Vite dev server with SWC",
4
- "version": "3.0.0-beta.2",
4
+ "version": "3.0.0",
5
5
  "author": "Arnaud Barré (https://github.com/ArnaudBarre)",
6
6
  "license": "MIT",
7
7
  "repository": "github:vitejs/vite-plugin-react-swc",
@@ -24,7 +24,7 @@
24
24
  "fast refresh"
25
25
  ],
26
26
  "peerDependencies": {
27
- "vite": "^4.0.0-alpha.5"
27
+ "vite": "^4.0.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "@swc/core": "^1.3.21"