mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-09 17:19:33 +02:00
23 lines
564 B
TypeScript
23 lines
564 B
TypeScript
/// <reference types="vitest" />
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react-swc';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
|
|
// https://vitejs.dev/config https://vitest.dev/config
|
|
export default defineConfig({
|
|
plugins: [react(), tsconfigPaths()],
|
|
define: {
|
|
'process.env': {}
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util']
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'happy-dom',
|
|
setupFiles: '.vitest/setup',
|
|
include: ['**/*.test.{ts,tsx}']
|
|
},
|
|
worker: { format: 'es' }
|
|
});
|