| 1 | import { defineConfig } from "vite"; |
| 2 | import react from "@vitejs/plugin-react"; |
| 3 | import tailwindcss from "@tailwindcss/vite"; |
| 4 | import { tanstackRouter } from "@tanstack/router-plugin/vite"; |
| 5 | |
| 6 | export default defineConfig({ |
| 7 | plugins: [ |
| 8 | // Please make sure that '@tanstack/router-plugin' is passed before '@vitejs/plugin-react' |
| 9 | tanstackRouter({ |
| 10 | target: "react", |
| 11 | autoCodeSplitting: true, |
| 12 | }), |
| 13 | react(), |
| 14 | tailwindcss(), |
| 15 | ], |
| 16 | }); |