🔧 Configure path alias for cleaner imports (#1497)
This commit is contained in:
@@ -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()],
|
||||
})
|
||||
|
Reference in New Issue
Block a user