fixed build errors

This commit is contained in:
Emre
2025-10-24 04:17:02 +03:00
parent 3a7aa82ff7
commit 26fbea3ec4
16 changed files with 93 additions and 64 deletions

View File

@@ -10,4 +10,22 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
},
},
build: {
rollupOptions: {
output: {
manualChunks: {
react: ['react', 'react-dom', 'react-router', 'react-router-dom'],
framer: ['framer-motion'],
motion: ['motion/react'],
antd: [
'antd',
'rc-field-form',
'rc-motion',
'@ant-design/cssinjs',
'@rc-component/async-validator',
],
},
},
},
},
})