From 0479744ce5813b988d9ba0a19f50bc82a7466365 Mon Sep 17 00:00:00 2001 From: siujamo Date: Thu, 7 May 2026 10:51:29 +0800 Subject: [PATCH] perf: optimise packaging --- vite.config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index da4886d..f4ce05d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ plugins: [react(), tailwindcss()], base: "/", build: { - rollupOptions: { + rolldownOptions: { output: { manualChunks(id) { if (!id.includes("node_modules")) { @@ -23,7 +23,6 @@ export default defineConfig({ return "redux-vendor" } - if (id.includes("/node_modules/@ant-design/")) { return "ant-design-vendor" } @@ -47,5 +46,5 @@ export default defineConfig({ alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), }, - } + }, })