Commit 6006974
fix(ui): adapt to TypeScript 6, Vite 8, @vitejs/plugin-react 6 majors
Three incompatibilities surfaced after the dev-tooling group bump:
1. tsconfig.app.json — TypeScript 6 deprecates `baseUrl`. Since TS 5
`paths` is resolved relative to the tsconfig dir, so drop `baseUrl`
entirely and make the `@/*` path explicit (`./src/*`).
2. vite.config.ts — Vite 8 / Rollup 4's `manualChunks` type narrowed to
only accept the function form in some overloads. Convert from the
`Record<string, string[]>` shape to the function form, matching on
`node_modules/<pkg>` paths.
3. Test polyfills — TypeScript 6 / @types/node changes remove the
ambient `global` identifier. Switch both jsdom ResizeObserver
polyfills to `globalThis`, which is the standard JS spelling.
Local verification (Vite 8.0.9 + Vitest 4.1.5 + TypeScript 6.0.3):
- npm run typecheck — clean
- npm test — 52/52 passing
- npm run build — initial chunk 441 KB (budget 580 KB)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ab48899 commit 6006974
4 files changed
Lines changed: 9 additions & 10 deletions
File tree
- ui
- src/components
- layout/__tests__
- notes/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments