diff --git a/vite.config.ts b/vite.config.ts index 2cd3346..16bdf9f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -21,5 +21,13 @@ export default defineConfig({ build: { outDir: 'dist', sourcemap: true, + rollupOptions: { + output: { + manualChunks: { + 'react-vendor': ['react', 'react-dom', 'react-router-dom'], + 'antd-vendor': ['antd', '@ant-design/icons'], + }, + }, + }, }, }) \ No newline at end of file