# What changed in vite-tsconfig-paths

> 10 changes in vite-tsconfig-paths 5 to 6 from its official release notes, upgrade guides and advisories: 1 breaking, 3 new APIs and options. Each one cited. Sources checked 2026-10-23. HTML: https://unstale.sh/npm/vite-tsconfig-paths/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## vite-tsconfig-paths 6

### New APIs and options

- Provides fine-grained control over which files have their imports resolved by the plugin. (6.1.0) — [release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.1.0)
- Adds per-import resolution traces; pass true to write to `vite-tsconfig-paths.log` or provide a path. (6.0.0) — [release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.0.0)
- Adds lazy tsconfig discovery via projectDiscovery: "lazy"; eager discovery remains the default. (6.0.0) — [release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.0.0)

### Performance

- Regular expressions are hoisted out of the resolver's hot path for better performance. (6.1.0) — [release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.1.0)

### Behavior and default changes

- Root `/*` aliases and other absolute-style imports are supported and resolve the same way tsserver does. (6.0.0) — [release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.0.0)
- tsconfig and jsconfig files are watched and reloaded automatically in both discovery modes, including during `vite build --watch`. (6.0.0) — [release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.0.0)

### Tooling

- Supports `.astro` files when `allowJs` or `loose` is enabled. (6.0.0) — [release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.0.0)

### Fixes and other changes

- The plugin ignores resolutions that point to `.d.ts` files, avoiding issues when `tsconfig` is used for opt-in type overrides. (6.1.0) — [release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.1.0)
- Normalizes drive-letter casing to avoid missed matches on Windows. (6.0.0) — [release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.0.0)

## vite-tsconfig-paths 5

### Breaking changes

- The package is now ESM only. CommonJS projects can rename their Vite config to .mjs or .mts; projects not using Vite 5.0.0+ may pin this plugin to v4. (5.0.0) — [release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v5.0.0)
