From 2e9837b70d886ddb2656c9d0a40a9773ad1463a2 Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Sun, 15 Mar 2026 19:18:58 +0200 Subject: [PATCH] build: update frontend dependencies --- frontend/package.json | 5 ++--- frontend/vite.config.ts | 6 ++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 7293d87f..50164dca 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -29,14 +29,13 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@types/react-syntax-highlighter": "^15.5.13", - "@vitejs/plugin-react": "^5.1.4", + "@vitejs/plugin-react": "^6.0.1", "eslint": "^9.39.3", "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.5.2", "eslint-plugin-simple-import-sort": "^12.1.1", "typescript": "^5.9.3", "typescript-eslint": "^8.56.1", - "vite": "^7.3.1", - "vite-tsconfig-paths": "^6.1.1" + "vite": "^8.0.0" } } diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 61ff64e7..04b94fdb 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,7 +1,6 @@ import react from "@vitejs/plugin-react"; import path from "path"; import { defineConfig, type Plugin } from "vite"; -import tsconfigPaths from "vite-tsconfig-paths"; function rename(oldName: string, newName: string): Plugin { return { @@ -16,8 +15,11 @@ function rename(oldName: string, newName: string): Plugin { } export default defineConfig({ - plugins: [react(), tsconfigPaths(), rename("index.html", "build-status.jinja2")], + plugins: [react(), rename("index.html", "build-status.jinja2")], base: "/", + resolve: { + tsconfigPaths: true, + }, build: { chunkSizeWarningLimit: 10000, emptyOutDir: false,