import { defineConfig } from "vite"; import react from "@vitejs/plugin-react-swc"; import { TanStackRouterVite } from "@tanstack/router-plugin/vite"; import image from "@rollup/plugin-image"; import path from "node:path"; // https://vite.dev/config/ export default defineConfig({ plugins: [ TanStackRouterVite({ autoCodeSplitting: true, quoteStyle: "double", target: "react", }), image(), react(), ], resolve: { alias: { "@/test": path.resolve(__dirname, "./test"), "@": path.resolve(__dirname, "./src"), }, }, build: { manifest: true, sourcemap: true, rollupOptions: { input: { reactApp: "./src/main.tsx", }, }, outDir: "../public", }, });