🔧 Configure path alias for cleaner imports (#1497)

This commit is contained in:
Alejandra
2025-02-17 19:55:20 +00:00
committed by GitHub
parent 322975dd6e
commit ed34e5e170
30 changed files with 121 additions and 102 deletions

View File

@@ -1,8 +1,14 @@
import path from "node:path"
import { TanStackRouterVite } from "@tanstack/router-vite-plugin"
import react from "@vitejs/plugin-react-swc"
import { defineConfig } from "vite"
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
plugins: [react(), TanStackRouterVite()],
})