Commit 1a48730
fix(vitest-plugin): add tsconfig paths for vite 8 type resolution
Vite 8 removed the `main` and `types` top-level fields from its
package.json, relying entirely on the `exports` map. Since the base
tsconfig uses `moduleResolution: "node"` (TypeScript 4.9.4), the
compiler cannot resolve `import { Plugin } from "vite"` without
an explicit path mapping.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 30fd0e4 commit 1a48730
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
0 commit comments