mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-25 00:11:52 +08:00
perf: reduce js size
This commit is contained in:
@@ -11,4 +11,19 @@ export default defineConfig({
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
highlight: ["react-syntax-highlighter"],
|
||||
radixUi: ["radix-ui"],
|
||||
motion: ["framer-motion", "motion"],
|
||||
sonner: ["sonner"],
|
||||
yup: ["yup"],
|
||||
i18n: ["react-i18next", "i18next"],
|
||||
reactRouter: ["react-router", "react-router-dom"],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user