pull/1890/head
Rich Harris 7 years ago
parent 2783d17c0c
commit 77191d15f5

@ -77,8 +77,8 @@ async function getBundle(mode, cache, lookup) {
plugins: [{
resolveId(importee, importer) {
// v3 hack
if (importee === `svelte`) return `https://unpkg.com/svelte@${version}/index.js`;
if (importee.startsWith(`svelte`)) return `https://unpkg.com/svelte@${version}/${importee.slice(7)}`;
if (importee === `svelte`) return `https://unpkg.com/svelte@${version}/index.mjs`;
if (importee.startsWith(`svelte`)) return `https://unpkg.com/svelte@${version}/${importee.slice(7)}.mjs`;
if (importer && importer.startsWith(`https://`)) {
return new URL(importee, importer).href;

Loading…
Cancel
Save