import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import path from 'path' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], base: './', build: { outDir: 'dist', emptyOutDir: true, rollupOptions: { output: { manualChunks: { 'vendor-xterm': ['@xterm/xterm', '@xterm/addon-fit', '@xterm/addon-search', '@xterm/addon-webgl'], 'vendor-react': ['react', 'react-dom'], 'vendor-lucide': ['lucide-react'], 'vendor-zustand': ['zustand'], }, }, }, }, resolve: { alias: { '@': path.resolve(__dirname, './src'), }, }, server: { port: 5173, }, })