fix:build issues

This commit is contained in:
2025-10-07 14:28:23 +02:00
parent 716c05c256
commit 8d3922e71c

View File

@@ -7,14 +7,7 @@ export default defineConfig({
preview: { allowedHosts: ['ziasvannes.tech'] }, preview: { allowedHosts: ['ziasvannes.tech'] },
build: { build: {
target: 'es2020', target: 'es2020',
cssCodeSplit: true, cssCodeSplit: true
rollupOptions: {
output: {
manualChunks: {
maplibre: ['maplibre-gl', 'svelte-maplibre']
}
}
}
}, },
optimizeDeps: { optimizeDeps: {
include: ['maplibre-gl', 'svelte-maplibre'] include: ['maplibre-gl', 'svelte-maplibre']