From 56f86517b052ff14d8cabc0a98b51aee6d8480cb Mon Sep 17 00:00:00 2001 From: ttbombadil Date: Mon, 12 Oct 2026 18:22:29 +0200 Subject: [PATCH] chore(build): remove redundant vite-tsconfig-paths plugin Vite 8 reports that tsconfig path resolution is built in and the plugin is no longer needed. Both vite.config.ts and vitest.config.ts already define the same mappings as explicit resolve.alias entries (@, @shared), which cover every path in tsconfig.json (@/*, @shared/*), so the plugin added nothing. Remove the plugin from both configs and the dependency, including its exclusive transitive packages (tsconfck, globrex). No switch to resolve.tsconfigPaths and no alias changes. Co-Authored-By: Claude Sonnet 5.5 --- package-lock.json | 44 -------------------------------------------- package.json | 1 - vite.config.ts | 3 +-- vitest.config.ts | 2 -- 4 files changed, 1 insertion(+), 49 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2588a766b..efd7e552e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -74,7 +74,6 @@ "tsx": "^4.20.5", "typescript": "^5.6.3", "vite": "^8.3.3", - "vite-tsconfig-paths": "^6.0.5", "vitest": "^4.1.0" }, "engines": { @@ -7164,13 +7163,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globrex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", - "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==", - "dev": true, - "license": "MIT" - }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -10088,27 +10080,6 @@ "typescript": ">=4.8.4" } }, - "node_modules/tsconfck": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-3.1.6.tgz", - "integrity": "sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w==", - "dev": true, - "license": "MIT", - "bin": { - "tsconfck": "bin/tsconfck.js" - }, - "engines": { - "node": "^18 || >=20" - }, - "peerDependencies": { - "typescript": "^5.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", @@ -10434,21 +10405,6 @@ } } }, - "node_modules/vite-tsconfig-paths": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-6.1.1.tgz", - "integrity": "sha512-2cihq7zliibCCZ8P9cKJrQBkfgdvcFkOOc3Y02o3GWUDLgqjWsZudaoiuOwO/gzTzy17cS5F7ZPo4bsnS4DGkg==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.1.1", - "globrex": "^0.1.2", - "tsconfck": "^3.0.3" - }, - "peerDependencies": { - "vite": "*" - } - }, "node_modules/vite/node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", diff --git a/package.json b/package.json index 0bbeb93c1..849b5f6d4 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,6 @@ "tsx": "^4.20.5", "typescript": "^5.6.3", "vite": "^8.3.3", - "vite-tsconfig-paths": "^6.0.5", "vitest": "^4.1.0" }, "optionalDependencies": { diff --git a/vite.config.ts b/vite.config.ts index 9ce96d713..481bfc16e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,5 @@ import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; -import tsconfigPaths from "vite-tsconfig-paths"; import path from "node:path"; import { fileURLToPath } from "node:url"; @@ -24,7 +23,7 @@ function getAllowedFrameAncestors(): string { } export default defineConfig({ - plugins: [tsconfigPaths(), react()], + plugins: [react()], resolve: { alias: { "@assets": path.resolve(__dirname, "attached_assets"), diff --git a/vitest.config.ts b/vitest.config.ts index 49cb61cd0..96f044189 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,5 +1,4 @@ import { defineConfig } from "vitest/config"; -import tsconfigPaths from "vite-tsconfig-paths"; import path from "node:path"; // Force NODE_ENV to 'test' regardless of shell environment. @@ -49,7 +48,6 @@ const serializedHttpUnitTests = [ ] as const; export default defineConfig({ - plugins: [tsconfigPaths()], resolve: { alias: { "@shared": path.resolve(__dirname, "shared"),