diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 987e0b8..2977cf4 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -7,13 +7,12 @@ import bash from 'svelte-highlight/languages/bash'; import agate from 'svelte-highlight/styles/agate'; - import {Player, Video, DefaultUi} from '@vime/svelte'; - - let Carousel; + let Carousel, Player, Video, DefaultUi; onMount(async () => { // Perform dynamic import of svelte-carousel because it breaks // if imported during SSR Carousel = (await import('svelte-carousel')).default; + ({Player, Video, DefaultUi} = await import('@vime/svelte')); }) let images = [ @@ -93,12 +92,12 @@ {#each images as image}