2024-08-11 17:14:54 +02:00
|
|
|
/// <reference types="vitest" />
|
|
|
|
|
/// <reference types="vite/client" />
|
|
|
|
|
import { defineConfig, mergeConfig } from 'vitest/config'
|
2024-10-16 20:41:33 +02:00
|
|
|
import { tanstackBuildConfig } from '@tanstack/config/build'
|
2024-12-23 18:20:29 +01:00
|
|
|
import react from '@vitejs/plugin-react-swc'
|
2024-08-11 17:14:54 +02:00
|
|
|
|
|
|
|
|
const config = defineConfig({
|
|
|
|
|
plugins: [react()],
|
|
|
|
|
test: {
|
2024-10-16 20:49:46 +02:00
|
|
|
name: 'tuono-router',
|
2024-08-11 17:14:54 +02:00
|
|
|
watch: true,
|
|
|
|
|
environment: 'jsdom',
|
|
|
|
|
globals: true,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default mergeConfig(
|
|
|
|
|
config,
|
2024-10-16 20:41:33 +02:00
|
|
|
tanstackBuildConfig({
|
2024-08-11 17:14:54 +02:00
|
|
|
entry: './src/index.ts',
|
|
|
|
|
srcDir: './src',
|
|
|
|
|
}),
|
|
|
|
|
)
|