vite.config.ts (477B)
1 import { defineConfig, splitVendorChunkPlugin } from 'vite' 2 import react from "@vitejs/plugin-react-swc"; 3 4 // https://vitejs.dev/config/ 5 export default defineConfig({ 6 plugins: [ 7 react(), 8 splitVendorChunkPlugin() 9 ], 10 appType: 'mpa', 11 build: { 12 target: 'esnext', 13 rollupOptions: { 14 treeshake: 'recommended', 15 } 16 }, 17 // Broken 18 // optimizeDeps: { 19 // disabled: false, 20 // exclude: [] 21 // } 22 })