From 55aec34a3568abf5eb2b8fbc854d295115aff8d1 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 25 May 2026 18:45:31 +0200 Subject: Upgrade vite to 8.0.x. And adjust configuration accordingly, see https://vite.dev/guide/build#chunking-strategy --- vite.config.js | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'vite.config.js') diff --git a/vite.config.js b/vite.config.js index 2e513f9..0af7e4d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,11 +8,26 @@ export default { assetsDir: "assets", rollupOptions: { output: { - manualChunks: { - ol: ['ol'], - bootstrap: ['bootstrap'], - proj4: ['proj4'], - } + codeSplitting: { + groups: [ + { + name: 'ol_source', + test: /node_modules[\\/]ol[\\/]source/, + }, + { + name: 'ol', + test: /node_modules[\\/]ol/, + }, + { + name: 'bootstrap', + test: /node_modules[\\/]bootstrap/, + }, + { + name: 'proj4', + test: /node_modules[\\/]proj4/, + }, + ], + }, } } }, -- cgit v1.2.3