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