Files
fast_api_template/frontend/vite.config.ts
T

21 lines
433 B
TypeScript
Raw Normal View History

2025-02-17 19:55:20 +00:00
import path from "node:path"
2025-09-09 14:45:10 +02:00
import { tanstackRouter } from "@tanstack/router-plugin/vite"
2024-03-17 17:28:45 +01:00
import react from "@vitejs/plugin-react-swc"
import { defineConfig } from "vite"
// https://vitejs.dev/config/
export default defineConfig({
2025-02-17 19:55:20 +00:00
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
2025-09-08 12:12:19 +02:00
plugins: [
tanstackRouter({
target: "react",
autoCodeSplitting: true,
}),
2025-09-09 14:45:10 +02:00
react(),
],
})