This is an automated email from the ASF dual-hosted git repository.

lizhimins pushed a commit to branch rocketmq-studio
in repository https://gitbox.apache.org/repos/asf/rocketmq-dashboard.git


The following commit(s) were added to refs/heads/rocketmq-studio by this push:
     new fb3dec12 perf(web): split stable vendor chunks (#1266)
fb3dec12 is described below

commit fb3dec128aaa4dcb411db76204a44a3b56ae64f9
Author: aias00 <[email protected]>
AuthorDate: Mon Aug 10 19:48:58 2026 +0800

    perf(web): split stable vendor chunks (#1266)
---
 web/vite.config.ts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/web/vite.config.ts b/web/vite.config.ts
index 5c6fb649..dbf50854 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -6,6 +6,20 @@ export default defineConfig(({ mode }) => {
   const env = loadEnv(mode, '.', '');
   return {
     plugins: [react()],
+    build: {
+      // Ant Design is shared by the application shell and most route 
components. Keep it
+      // cacheable as one vendor chunk rather than splitting its cyclic 
internals.
+      chunkSizeWarningLimit: 1400,
+      rollupOptions: {
+        output: {
+          manualChunks: {
+            react: ['react', 'react-dom', 'react-router-dom'],
+            antd: ['antd', '@ant-design/icons'],
+            markdown: ['react-markdown', 'remark-gfm'],
+          },
+        },
+      },
+    },
     server: {
       port: 5173,
       proxy: {

Reply via email to