A Vite plugin that resolves TypeScript compilerOptions.paths, supporting tsconfig extends and references in subdirectories. Current stable version is 0.0.10. The plugin uses tsconfck to parse all tsconfig.json project files, including references, and creates resolvers based on the compiled paths. It differentiates from alternatives like vite-tsconfig-paths by supporting extends and references in sub-folders out of the box. Release cadence is irregular with a few minor versions since its inception. The plugin is TypeScript-first, ships types, and requires Vite as a peer dependency.
npm install vite-resolve-tsconfig-pathsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and use vite-resolve-tsconfig-paths in a Vite project with TypeScript.
Convert to ESM by using import syntax or setting type: 'module' in package.json.
Use import { tsConfigPaths } from 'vite-resolve-tsconfig-paths'.Ensure a valid tsconfig.json with 'compilerOptions.paths' exists in the project root.
Pin the exact version in package.json and test upgrades carefully.
Replace require('vite-resolve-tsconfig-paths') with import { tsConfigPaths } from 'vite-resolve-tsconfig-paths' and ensure your project uses ESM.Change import to import { tsConfigPaths } from 'vite-resolve-tsconfig-paths'.Install Vite: npm install -D vite.