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

vite.config.ts

21 lines453 Bytes

1import { defineConfig, mergeConfig } from 'vitest/config'
2import { tanstackViteConfig } from '@tanstack/config/vite'
3import packageJson from './package.json'
4​
5const config = defineConfig({
6 test: {
7 name: packageJson.name,
8 dir: './tests',
9 watch: false,
10 environment: 'jsdom',
11 typecheck: { enabled: true },
12 },
13})
14​
15export default mergeConfig(
16 config,
17 tanstackViteConfig({
18 entry: './src/index.ts',
19 srcDir: './src',
20 }),