client/web: update vite and vitest to latest versions (#11200)

Update vite to 5.1.4, and vitest to 1.3.1 (their latest versions). Also
remove vite-plugin-rewrite-all as this is no longer necessary with vite
5.x and has a dependency on vite 4.x.

Updates https://github.com/tailscale/corp/issues/17715

Signed-off-by: Mario Minardi <mario@tailscale.com>
pull/11202/merge
Mario Minardi 9 months ago committed by GitHub
parent 15b2c674bf
commit ac281dd493
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -19,6 +19,7 @@
"zustand": "^4.4.7" "zustand": "^4.4.7"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^18.16.1",
"@types/react": "^18.0.20", "@types/react": "^18.0.20",
"@types/react-dom": "^18.0.6", "@types/react-dom": "^18.0.6",
"@vitejs/plugin-react-swc": "^3.6.0", "@vitejs/plugin-react-swc": "^3.6.0",
@ -32,11 +33,10 @@
"prettier-plugin-organize-imports": "^3.2.2", "prettier-plugin-organize-imports": "^3.2.2",
"tailwindcss": "^3.3.3", "tailwindcss": "^3.3.3",
"typescript": "^4.7.4", "typescript": "^4.7.4",
"vite": "^4.5.2", "vite": "^5.1.4",
"vite-plugin-rewrite-all": "^1.0.1",
"vite-plugin-svgr": "^4.2.0", "vite-plugin-svgr": "^4.2.0",
"vite-tsconfig-paths": "^3.5.0", "vite-tsconfig-paths": "^3.5.0",
"vitest": "^0.32.0" "vitest": "^1.3.1"
}, },
"scripts": { "scripts": {
"build": "vite build", "build": "vite build",

@ -5,6 +5,7 @@
"module": "ES2020", "module": "ES2020",
"strict": true, "strict": true,
"sourceMap": true, "sourceMap": true,
"skipLibCheck": true,
"isolatedModules": true, "isolatedModules": true,
"moduleResolution": "node", "moduleResolution": "node",
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,

@ -1,6 +1,5 @@
/// <reference types="vitest" /> /// <reference types="vitest" />
import { createLogger, defineConfig } from "vite" import { createLogger, defineConfig } from "vite"
import rewrite from "vite-plugin-rewrite-all"
import svgr from "vite-plugin-svgr" import svgr from "vite-plugin-svgr"
import paths from "vite-tsconfig-paths" import paths from "vite-tsconfig-paths"
@ -24,11 +23,6 @@ export default defineConfig({
plugins: [ plugins: [
paths(), paths(),
svgr(), svgr(),
// By default, the Vite dev server doesn't handle dots
// in path names and treats them as static files.
// This plugin changes Vite's routing logic to fix this.
// See: https://github.com/vitejs/vite/issues/2415
rewrite(),
], ],
build: { build: {
outDir: "build", outDir: "build",

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save