2026-03-16 19:46:08 +00:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react()],
|
|
|
|
|
test: {
|
|
|
|
|
globals: true,
|
2026-03-17 00:29:39 +00:00
|
|
|
environment: 'happy-dom',
|
|
|
|
|
setupFiles: ['./src/setupTests.js'],
|
|
|
|
|
exclude: ['**/e2e/**', '**/node_modules/**'],
|
2026-03-16 19:46:08 +00:00
|
|
|
},
|
|
|
|
|
server: {
|
2026-04-01 11:04:16 +01:00
|
|
|
port: 3050,
|
2026-03-16 19:46:08 +00:00
|
|
|
host: '0.0.0.0',
|
|
|
|
|
},
|
|
|
|
|
build: {
|
|
|
|
|
outDir: 'build',
|
|
|
|
|
target: 'esnext',
|
|
|
|
|
},
|
|
|
|
|
optimizeDeps: {
|
|
|
|
|
esbuildOptions: {
|
|
|
|
|
target: 'esnext',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|