From 8ae3f6543d1ef491c9b010487d428d2c5d9d6b95 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Fri, 24 Mar 2023 16:11:06 -0400 Subject: [PATCH] Fix building static site --- web-frontend/src/lib/Map.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-frontend/src/lib/Map.svelte b/web-frontend/src/lib/Map.svelte index 5f3e00b..ee03b98 100644 --- a/web-frontend/src/lib/Map.svelte +++ b/web-frontend/src/lib/Map.svelte @@ -2,7 +2,6 @@ import { onMount, onDestroy } from 'svelte'; import { browser } from '$app/environment'; import { createEventDispatcher } from 'svelte'; - import * as leafletControlGeocoder from 'leaflet-control-geocoder'; const dispatch = createEventDispatcher(); @@ -31,6 +30,7 @@ onMount(async () => { if (browser) { const leaflet = await import('leaflet'); + const leafletControlGeocoder = await import('leaflet-control-geocoder'); map = leaflet.map(mapElement); // TODO: Pick a better spot