mirror of
https://github.com/Cccc-owo/CheckInApp.git
synced 2026-06-17 14:06:28 +00:00
feat: migrate from Element Plus to Ant Design Vue and update Vite configuration for better dependency management
- Updated Vite configuration to manually chunk Ant Design Vue for improved dependency management. - Added a comprehensive migration testing checklist for transitioning from Element Plus 2.13.0 to Ant Design Vue 4.x, covering various components and functionalities.
This commit is contained in:
@@ -29,11 +29,11 @@ export default defineConfig({
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
// Let Vite handle chunking automatically to avoid circular dependencies
|
||||
// Element Plus will be bundled with its dependencies in the correct order
|
||||
// Manual chunking for better dependency management
|
||||
if (id.includes('node_modules')) {
|
||||
if (id.includes('element-plus')) {
|
||||
return 'element-plus'
|
||||
// Ant Design Vue
|
||||
if (id.includes('ant-design-vue')) {
|
||||
return 'ant-design-vue'
|
||||
}
|
||||
// Group all other vendor code together
|
||||
return 'vendor'
|
||||
|
||||
Reference in New Issue
Block a user