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

Commit 00fe7e4

Browse files
authored
Follow official plugins naming convention (#12)
1 parent bd87037 commit 00fe7e4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44

5+
- breaking: update plugin name to `vite:react-swc` to match official plugins naming
56
- fix: don't add React Refresh wrapper for SSR transform (fixes [#11](https://github.com/vitejs/vite-plugin-react-swc/issues/11))
67

78
## 3.0.0-beta.1

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const refreshContentRE = /\$Refresh(?:Reg|Sig)\$\(/;
2020

2121
const react = (): PluginOption[] => [
2222
{
23-
name: "@vitejs/plugin-react-swc",
23+
name: "vite:react-swc",
2424
apply: "serve",
2525
config: () => ({
2626
esbuild: false,
@@ -111,7 +111,7 @@ const react = (): PluginOption[] => [
111111
},
112112
},
113113
{
114-
name: "@vitejs/plugin-react-swc",
114+
name: "vite:react-swc",
115115
apply: "build",
116116
config: () => ({
117117
esbuild: {

0 commit comments

Comments
 (0)