mirror of
https://github.com/rustmailer/bichon.git
synced 2026-08-03 07:48:34 +02:00
27 lines
716 B
TypeScript
27 lines
716 B
TypeScript
/// <reference types="vitest" />
|
|
import path from 'path'
|
|
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react-swc'
|
|
import { TanStackRouterVite } from '@tanstack/router-plugin/vite'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
base: '',
|
|
plugins: [react(), TanStackRouterVite()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
|
|
// fix loading all icon chunks in dev mode
|
|
// https://github.com/tabler/tabler-icons/issues/1233
|
|
'@tabler/icons-react': '@tabler/icons-react/dist/esm/icons/index.mjs',
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './src/test/setup.ts',
|
|
css: false,
|
|
},
|
|
})
|