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

vite.config.ts

22 lines479 Bytes

1import { defineConfig, mergeConfig } from 'vitest/config'
2import { tanstackViteConfig } from '@tanstack/config/vite'
3import react from '@vitejs/plugin-react'
4import packageJson from './package.json'
5​
6const config = defineConfig({
7 plugins: [react()],
8 test: {
9 name: packageJson.name,
10 watch: false,
11 environment: 'jsdom',
12 },
13})
14​
15export default mergeConfig(
16 config,
17 tanstackViteConfig({
18 srcDir: './src',
19 entry: './src/index.tsx',
20 cjs: false,
21 }),