diff --git a/sites/svelte.dev/src/config.js b/sites/svelte.dev/src/config.js index bdf5a5deca..9897448afd 100644 --- a/sites/svelte.dev/src/config.js +++ b/sites/svelte.dev/src/config.js @@ -1,6 +1,6 @@ // REPL props -export const svelteUrl = `https://unpkg.com/svelte@4`; +export const svelteUrl = `https://esm.sh/svelte@4`; export const mapbox_setup = `window.MAPBOX_ACCESS_TOKEN = '${ import.meta.env.VITE_MAPBOX_ACCESS_TOKEN }';`; diff --git a/sites/svelte.dev/src/lib/components/ReplWidget.svelte b/sites/svelte.dev/src/lib/components/ReplWidget.svelte index bba3f4aa95..49bb4a3f8b 100644 --- a/sites/svelte.dev/src/lib/components/ReplWidget.svelte +++ b/sites/svelte.dev/src/lib/components/ReplWidget.svelte @@ -80,7 +80,7 @@ $: svelteUrl = browser && version === 'local' ? `${location.origin}/repl/local` - : `https://unpkg.com/svelte@${version}`; + : `https://esm.run/svelte@${version}`; {#if browser}