Open History to see the last commit
1import { defineConfig } from 'vitest/config'
2import react from '@vitejs/plugin-react'
3import { tanstackRouter } from '@tanstack/router-plugin/vite'
4import packageJson from './package.json'
5import tailwindcss from '@tailwindcss/vite'
6β
7export default defineConfig({
8 test: {
9 name: packageJson.name,
10 dir: './tests',
11 watch: false,
12 environment: 'jsdom',
13 typecheck: { enabled: true },
14 },
15 plugins: [
16 tailwindcss(),
17 tanstackRouter({
18 target: 'react',
19 autoCodeSplitting: true,
20 }),
21 react(),
22 ],
23})