td2-visualizer/vite.config.mjs
izawartka c688e67281 Migrate to Vite
- Migrated the codebase from create-react-app to Vite
2026-08-12 17:19:17 +02:00

17 lines
317 B
JavaScript

import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
return {
base: env.VITE_BASE || '/',
plugins: [
react(),
],
build: {
target: 'es2015',
},
};
});