mirror of
https://github.com/lukaszraczylo/git-velocity.git
synced 2026-10-11 23:20:13 +00:00
fix(web): split chart chunk with rolldown codeSplitting
Vite 8 uses Rolldown, which rejects the object form of manualChunks. Move the chart.js chunk to build.rolldownOptions.output.codeSplitting.
This commit is contained in:
+8
-3
@@ -14,10 +14,15 @@ export default defineConfig({
|
||||
outDir: 'dist',
|
||||
assetsDir: 'assets',
|
||||
emptyOutDir: true,
|
||||
rollupOptions: {
|
||||
rolldownOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
'chart': ['chart.js']
|
||||
codeSplitting: {
|
||||
groups: [
|
||||
{
|
||||
name: 'chart',
|
||||
test: /node_modules\/(chart\.js|@kurkle\/color)\//
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user