fixed build errors
This commit is contained in:
@@ -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',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user