feat(web): upgrade build tooling to Vite 8 (#853)

Upgrade Vite to 8.2.0 and @vitejs/plugin-react to 6.0.5.

Use Vite's native tsconfig path resolver and remove vite-tsconfig-paths.

Verified with pnpm build and pnpm lint (existing warnings only).
This commit is contained in:
肆月
2026-08-06 14:25:55 +08:00
committed by GitHub
parent 562ea8277c
commit 761b02ed7e
3 changed files with 541 additions and 353 deletions

View File

@@ -56,7 +56,7 @@
"@types/websocket": "^1.0.10",
"@typescript-eslint/eslint-plugin": "^8.59.0",
"@typescript-eslint/parser": "^8.59.0",
"@vitejs/plugin-react": "^4.7.0",
"@vitejs/plugin-react": "^6.0.5",
"autoprefixer": "^10.4.27",
"eslint": "^9.39.4",
"eslint-config-prettier": "^9.1.2",
@@ -71,8 +71,7 @@
"tailwindcss": "^3.4.19",
"typescript": "^5.9.3",
"typescript-eslint": "^8.59.0",
"vite": "7.3.2",
"vite-tsconfig-paths": "^4.3.2",
"vite": "8.2.0",
"yaml": "^2.8.3"
},
"msw": {

883
web/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,11 @@
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import viteTsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [react(), viteTsconfigPaths()],
plugins: [react()],
resolve: {
tsconfigPaths: true
},
server: {
port: 3001
},