From 7e11e095ab877de648c9d5cb3a92abfb18d5c135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Sun, 11 Jun 2023 22:40:39 +0100 Subject: [PATCH] chore: manually adjust chunks --- vite.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 6d9de23..5769c19 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -96,8 +96,10 @@ export default defineConfig({ rollupOptions: { output: { manualChunks: { - reacts: ['react', 'react-dom', 'react-promise-suspense', 'react-redux', '@reduxjs/toolkit'], - chakra: ['@chakra-ui/icons', '@chakra-ui/react', '@emotion/react', '@emotion/styled', 'framer-motion'], + reacts: ['react', 'react-dom', 'react-dropzone', 'react-promise-suspense', 'react-redux', '@reduxjs/toolkit'], + chakra: ['@chakra-ui/react', '@emotion/react', '@emotion/styled', 'framer-motion'], + icons: ['react-icons', '@chakra-ui/icons'], + utility: ['radash', 'nanoid', 'immer', 'react-syntax-highlighter'], }, }, },