Open History to see the last commit
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 }),
24)