fix: incomplete dynamic imports (#23217)

This commit is contained in:
Min Idzelis
2025-10-27 08:45:30 -04:00
committed by GitHub
parent 3f03a88767
commit 6bb1a9e083
8 changed files with 69 additions and 49 deletions

View File

@@ -440,15 +440,15 @@
{#if latlng && $featureFlags.loaded && $featureFlags.map}
<div class="h-[360px]">
{#await import('../shared-components/map/map.svelte')}
{#await import('$lib/components/shared-components/map/map.svelte')}
{#await delay(timeToLoadTheMap) then}
<!-- show the loading spinner only if loading the map takes too much time -->
<div class="flex items-center justify-center h-full w-full">
<LoadingSpinner />
</div>
{/await}
{:then component}
<component.default
{:then { default: Map }}
<Map
mapMarkers={[
{
lat: latlng.lat,
@@ -480,7 +480,7 @@
</a>
</div>
{/snippet}
</component.default>
</Map>
{/await}
</div>
{/if}