added build config

This commit is contained in:
Kakabay 2025-01-30 18:09:28 +05:00
parent 1ef6a9f730
commit ce24e44b0e
1 changed files with 10 additions and 0 deletions

View File

@ -9,4 +9,14 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"), "@": path.resolve(__dirname, "./src"),
}, },
}, },
build: {
rollupOptions: {
output: {
manualChunks: {
"react-vendor": ["react", "react-dom", "react-router-dom"], // Вынос библиотеки React
"ui-library": ["@/components/shared"], // Отдельный чанк для UI-компонентов
},
},
},
},
}); });