mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
refactor: batch 4
This commit is contained in:
@@ -96,13 +96,14 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
build: {
|
||||
minify: true,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
reacts: ['react', 'react-dom', 'react-dropzone', 'react-redux', '@reduxjs/toolkit'],
|
||||
chakra: ['@chakra-ui/react', '@emotion/react', '@emotion/styled', 'framer-motion'],
|
||||
icons: ['react-icons', '@chakra-ui/icons'],
|
||||
utility: ['radash', 'nanoid', 'react-syntax-highlighter'],
|
||||
core: ['react', 'react-dom'],
|
||||
router: ['react-router'],
|
||||
store: ['react-redux', '@reduxjs/toolkit'],
|
||||
extras: ['react-dropzone', 'react-toastify'],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user