YangYuGang
2025-04-14 6a7257f9d8f659c508cf826726126c0fa4363eef
vite.config.ts
@@ -3,14 +3,17 @@
 * @Author: your name
 * @version: 
 * @Date: 2024-06-17 14:51:26
 * @LastEditors: your name
 * @LastEditTime: 2024-06-17 15:18:56
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-06-18 18:06:29
 */
import { defineApplicationConfig } from '@vben/vite-config';
export default defineApplicationConfig({
  overrides: {
    optimizeDeps: {
      esbuildOptions: {
        target: 'esnext',
      },
      include: [
        'echarts/core',
        'echarts/charts',
@@ -45,5 +48,15 @@
        clientFiles: ['./index.html', './src/{views,components}/*'],
      },
    },
    build: {
      target: 'esnext',
      rollupOptions: {
        output: {
          manualChunks: {
            echarts: ['echarts'],
          },
        },
      },
    },
  },
});