aboutsummaryrefslogtreecommitdiff
path: root/vite.config.ts
diff options
context:
space:
mode:
authorAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2025-03-04 12:15:10 +0100
committerAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2025-03-04 12:15:10 +0100
commit0c0983428b387a587dc71baed30d7a16178b3ef2 (patch)
tree6b23a56cd341fa4941681ba1efea07bed10c184e /vite.config.ts
parent6677ce3906670afd2a2d13e91f37ccadebca12a7 (diff)
Fix build process
Diffstat (limited to 'vite.config.ts')
-rw-r--r--vite.config.ts11
1 files changed, 11 insertions, 0 deletions
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']
+ }
+ }
+ }
}
})