You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
472 B
TypeScript
17 lines
472 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import { cloudflare } from "@cloudflare/vite-plugin";
|
|
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
|
|
import UnoCSS from "unocss/vite";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
// must go before `react` plugin:
|
|
TanStackRouterVite({ target: "react", autoCodeSplitting: true }),
|
|
react(),
|
|
UnoCSS(),
|
|
cloudflare(),
|
|
],
|
|
});
|