Skip to main content

tsconfig paths Builder

v1.0.0

Visual builder for paths and baseUrl — preview resolved aliases, common pitfalls.

tsconfig.json paths
// tsconfig.json excerpt:
{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": [
        "./src/*"
      ],
      "@components/*": [
        "./src/components/*"
      ],
      "@lib/*": [
        "./src/lib/*"
      ]
    }
  }
}

// vite.config.ts:
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({ plugins: [tsconfigPaths()] });