Skip to content

Commit 1859c99

Browse files
committed
feat: template-react remove swc
1 parent fde63ab commit 1859c99

3 files changed

Lines changed: 3 additions & 10 deletions

File tree

template-react/.zed/settings.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,9 @@
2828
"lsp": {
2929
"tailwindcss-language-server": {
3030
"settings": {
31-
"classFunctions": [
32-
"cva",
33-
"clsx"
34-
],
31+
"classFunctions": ["cva", "clsx"],
3532
"experimental": {
36-
"classRegex": [
37-
"[cls|className]\\s\\:\\=\\s\"([^\"]*)"
38-
]
33+
"classRegex": ["[cls|className]\\s\\:\\=\\s\"([^\"]*)"]
3934
}
4035
}
4136
}

template-react/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"@types/node": "^25.0.8",
3535
"@types/react": "^19.2.8",
3636
"@types/react-dom": "^19.2.3",
37-
"@vitejs/plugin-react-swc": "^4.2.2",
3837
"globals": "^17.0.0",
3938
"oxfmt": "^0.24.0",
4039
"oxlint": "^1.39.0",

template-react/vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import tailwindcss from "@tailwindcss/vite"
2-
import react from "@vitejs/plugin-react-swc"
32
import { defineConfig, loadEnv } from "vite"
43

54
// https://vite.dev/config/
@@ -13,7 +12,7 @@ export default defineConfig(({ mode }) => {
1312
// vite8新增
1413
tsconfigPaths: true
1514
},
16-
plugins: [react(), tailwindcss()],
15+
plugins: [tailwindcss()],
1716
build: {
1817
// outDir: env.VITE_BUILD_OUT_PATH,
1918
// vite8 默认配置

0 commit comments

Comments
 (0)