omni-tools/vite.config.ts

23 lines
564 B
TypeScript
Raw Normal View History

2024-06-19 18:08:19 +01:00
/// <reference types="vitest" />
2024-06-22 03:29:34 +01:00
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import tsconfigPaths from 'vite-tsconfig-paths';
2024-06-19 18:08:19 +01:00
// https://vitejs.dev/config https://vitest.dev/config
export default defineConfig({
plugins: [react(), tsconfigPaths()],
2025-03-28 17:27:31 +00:00
define: {
'process.env': {}
},
2025-03-10 04:13:10 +00:00
optimizeDeps: {
exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util']
},
2024-06-19 18:08:19 +01:00
test: {
globals: true,
environment: 'happy-dom',
setupFiles: '.vitest/setup',
2024-06-22 03:29:34 +01:00
include: ['**/*.test.{ts,tsx}']
2025-04-03 02:29:20 +00:00
},
worker: { format: 'es' }
2024-06-22 03:29:34 +01:00
});