chore(web): migrate to vite v4 (#214)

Updated vite to v4 and update the react-plugin to support the v4 changes. Made sure dev port was stays consistent and manually set it to :3000
This commit is contained in:
masonschafercodes
2023-02-02 10:33:36 +01:00
committed by GitHub
parent db4a75dfbc
commit 8c560b5f87
3 changed files with 460 additions and 396 deletions
+2 -2
View File
@@ -20,7 +20,7 @@
"@types/node": "^16.11.26", "@types/node": "^16.11.26",
"@types/react": "^18.0.24", "@types/react": "^18.0.24",
"@types/react-dom": "^18.0.8", "@types/react-dom": "^18.0.8",
"@vitejs/plugin-react": "^1.3.2", "@vitejs/plugin-react": "^3.0.1",
"dayjs": "^1.11.7", "dayjs": "^1.11.7",
"focus-trap-react": "^9.0.2", "focus-trap-react": "^9.0.2",
"framer-motion": "^8.0.2", "framer-motion": "^8.0.2",
@@ -32,7 +32,7 @@
"react-markdown": "^8.0.1", "react-markdown": "^8.0.1",
"remark-gfm": "^3.0.1", "remark-gfm": "^3.0.1",
"typescript": "^4.6.3", "typescript": "^4.6.3",
"vite": "^2.9.13", "vite": "^4.0.4",
"web-vitals": "^2.1.4" "web-vitals": "^2.1.4"
}, },
"scripts": { "scripts": {
+455 -394
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -5,6 +5,9 @@ import react from "@vitejs/plugin-react";
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
base: "./", base: "./",
server: {
port: 3000,
},
build: { build: {
outDir: "build", outDir: "build",
target: "esnext", target: "esnext",