Skip to content

Commit

Permalink
release: v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Dec 9, 2022
1 parent 7aca00b commit 5e2a308
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 230 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 3.0.0

This is plugin is now stable! 🎉

To migrate from `vite-plugin-swc-react-refresh`, see the `3.0.0-beta.0` changelog.

## 3.0.0-beta.2

- breaking: update plugin name to `vite:react-swc` to match official plugins naming
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Speed up your Vite dev server with [SWC](https://swc.rs/)
- ✅ A fast Fast Refresh (~20x faster than Babel)
- ✅ Enable [automatic JSX runtime](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html)

> ⚠️ 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).
## Installation

```sh
Expand Down Expand Up @@ -43,3 +41,9 @@ For React refresh to work correctly, your file should only export React componen
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.

You can catch mistakes and get more detailed warning with this [eslint rule](https://github.com/ArnaudBarre/eslint-plugin-react-refresh).

## Migrating from `vite-plugin-swc-react-refresh`

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)

To migrate, see this [changelog](https://github.com/vitejs/vite-plugin-react-swc/releases/tag/v3.0.0-beta.0)
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vitejs/plugin-react-swc",
"version": "3.0.0-beta.2",
"version": "3.0.0",
"license": "MIT",
"scripts": {
"dev": "scripts/bundle.ts --dev",
Expand All @@ -17,17 +17,17 @@
"@swc/core": "^1.3.21"
},
"peerDependencies": {
"vite": "^4.0.0-alpha.5"
"vite": "^4.0.0"
},
"devDependencies": {
"@nabla/tnode": "^0.7.0",
"@nabla/tnode": "^0.8.0",
"@playwright/test": "^1.28.1",
"@types/fs-extra": "^9.0.13",
"@types/node": "^18.11.10",
"esbuild": "^0.15.18",
"esbuild": "^0.16.3",
"fs-extra": "^11.1.0",
"prettier": "^2.8.0",
"typescript": "^4.9.3",
"vite": "^4.0.0-alpha.6"
"vite": "^4.0.0"
}
}
Loading

0 comments on commit 5e2a308

Please sign in to comment.