import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import { fileURLToPath, URL } from "node:url"; export default defineConfig({ plugins: [react()], resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) } }, build: { chunkSizeWarningLimit: 700, rollupOptions: { output: { manualChunks: { "vendor-react": ["react", "react-dom", "react-router-dom"], "vendor-antd": ["antd", "@ant-design/icons"], "vendor-echarts": ["echarts"], "vendor-utils": ["axios", "zustand", "i18next", "react-i18next", "i18next-browser-languagedetector"], } } } }, server: { port: 5173, proxy: { "/sys": "http://localhost:8080" } } });