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