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

vite.config.ts

24 lines559 Bytes

1import { defineConfig, mergeConfig } from 'vitest/config'
2import { tanstackViteConfig } from '@tanstack/vite-config'
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 dir: './tests',
11 watch: false,
12 environment: 'jsdom',
13 typecheck: { enabled: true },
14 },
15})
16​
17export default mergeConfig(
18 config,
19 tanstackViteConfig({
20 tsconfigPath: './tsconfig.build.json',
21 entry: './src/index.ts',
22 srcDir: './src',
23 }),