Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

vite.config.js

20 lines525 Bytes

1import { defineConfig } from "vite";
2import viteReact from "@vitejs/plugin-react";
3import tailwindcss from "@tailwindcss/vite";
4​
5import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
6import { resolve } from "node:path";
7​
8// https://vitejs.dev/config/
9export default defineConfig({
10 plugins: [TanStackRouterVite({ autoCodeSplitting: true }), viteReact(), tailwindcss()],
11 test: {
12 globals: true,
13 environment: "jsdom",
14 },
15 resolve: {
16 alias: {
17 '@': resolve(__dirname, './src'),
18 },
19 }
20});