Skip to content

Commit

Permalink
Add @vitejs/plugin-react-swc@3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lzm0x219 committed Dec 9, 2022
1 parent b6538f9 commit 8c666c1
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 48 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"devDependencies": {
"@types/react": "18.0.26",
"@types/react-dom": "18.0.9",
"@vitejs/plugin-react-swc": "3.0.0",
"autoprefixer": "10.4.13",
"husky": "8.0.2",
"is-ci": "3.0.1",
Expand All @@ -40,7 +41,6 @@
"tailwindcss": "3.2.4",
"typescript": "4.9.4",
"vite": "4.0.0",
"vite-plugin-mkcert": "1.10.1",
"vite-plugin-swc-react-refresh": "2.2.1"
"vite-plugin-mkcert": "1.10.1"
}
}
86 changes: 43 additions & 43 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"composite": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
Expand Down
5 changes: 2 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from "vite";
import { swcReactRefresh } from "vite-plugin-swc-react-refresh";
import react from "@vitejs/plugin-react-swc";
import mkcert from "vite-plugin-mkcert";
import { resolve } from "node:path";

Expand All @@ -17,12 +17,11 @@ export default defineConfig(() => {
https: true,
},
plugins: [
swcReactRefresh(),
react(),
mkcert({
source: "coding",
}),
],
esbuild: { jsx: "automatic" },
build: {
rollupOptions: {
output: {
Expand Down

0 comments on commit 8c666c1

Please sign in to comment.