From 0c0983428b387a587dc71baed30d7a16178b3ef2 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> Date: Tue, 4 Mar 2025 12:15:10 +0100 Subject: Fix build process --- vite.config.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vite.config.ts') diff --git a/vite.config.ts b/vite.config.ts index 2160a6f..4cb4be2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,5 +11,16 @@ export default defineConfig({ changeOrigin: true } } + }, + build: { + rollupOptions: { + output: { + manualChunks: { + react: ['react', 'react-dom'], + router: ['react-router'], + leaflet: ['leaflet', 'react-leaflet', 'leaflet.locatecontrol', 'leaflet.markercluster'] + } + } + } } }) -- cgit v1.3