theia/vite.config.ts

32 lines
609 B
TypeScript
Raw Normal View History

import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import eslint from 'vite-plugin-eslint';
import checker from 'vite-plugin-checker';
2024-03-24 05:22:33 +01:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
eslint(),
checker({
typescript: true,
// eslint: { lintCommand: 'eslint src' },
overlay: false,
}),
],
//server: {
// open: true,
//},
2024-03-24 05:22:33 +01:00
test: {
globals: true,
environment: 'jsdom',
setupFiles: 'src/setupTests',
2024-03-24 05:22:33 +01:00
mockReset: true,
},
2024-03-24 06:17:11 +01:00
resolve: {
alias: {
src: '/src',
2024-03-24 06:17:11 +01:00
},
},
});