Skip to content

Commit e75236e

Browse files
HerrBertlingclaude
andcommitted
chore: drop vite-tsconfig-paths in favor of Vite 8 native support
Vite 8 added native tsconfig paths resolution via the `resolve.tsconfigPaths` option, making the `vite-tsconfig-paths` plugin redundant. After bumping to Vite 8 (#351), running typecheck surfaced this deprecation hint: The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead. Verified locally: lint, typecheck, all 63 tests pass; dev server boots and `/de` renders correctly (path imports like `~/utils/...` continue to resolve). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f39e5c0 commit e75236e

3 files changed

Lines changed: 23 additions & 68 deletions

File tree

package-lock.json

Lines changed: 19 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"postcss": "^8.5.14",
5656
"typescript": "^5.1.6",
5757
"vite": "^8.0.11",
58-
"vite-tsconfig-paths": "^6.1.1",
5958
"vitest": "^4.1.0"
6059
},
6160
"engines": {

vite.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import netlifyPlugin from "@netlify/vite-plugin-react-router";
22
import { reactRouter } from "@react-router/dev/vite";
33
import { defineConfig } from "vite";
4-
import tsconfigPaths from "vite-tsconfig-paths";
54

65
export default defineConfig({
7-
plugins: [reactRouter(), netlifyPlugin(), tsconfigPaths()],
6+
plugins: [reactRouter(), netlifyPlugin()],
7+
resolve: {
8+
tsconfigPaths: true,
9+
},
810
});

0 commit comments

Comments
 (0)