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

vite.config.ts

21 lines449 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 typecheck: { enabled: true },
8 name: packageJson.name,
9 watch: false,
10 environment: 'jsdom',
11 },
12})
13​
14export default mergeConfig(
15 config,
16 tanstackViteConfig({
17 srcDir: './src',
18 entry: './src/index.ts',
19 cjs: false,
20 }),