chore: Update Vite config and remove deprecated migration code

- Exclude additional chunk in Electron Vite configuration
- Remove outdated migration logic for providers and MinApps
This commit is contained in:
kangfenmao 2025-02-14 10:31:24 +08:00
parent 0278228a84
commit 65b30b3b0d
2 changed files with 1 additions and 11 deletions

View File

@ -51,7 +51,7 @@ export default defineConfig({
}
},
optimizeDeps: {
exclude: ['chunk-PZ64DZKH.js', 'chunk-JMKENWIY.js']
exclude: ['chunk-PZ64DZKH.js', 'chunk-JMKENWIY.js', 'chunk-UXYB6GHG.js']
}
}
})

View File

@ -994,16 +994,6 @@ const migrateConfig = {
enabled: false
}
)
state.llm.providers = state.llm.providers.filter((provider) => provider.id !== 'graphrag-kylin-mountain')
if (state.minapps) {
const aistudio = DEFAULT_MIN_APPS.find((app) => app.id === 'aistudio')
if (aistudio) {
state.minapps.enabled.push(aistudio)
}
}
return state
}
}