repl: better bundling error when unable to resolve module (#2208)

pull/2210/head
Conduitry 6 years ago
parent 863eff9516
commit 328db0920f

@ -89,6 +89,8 @@ async function getBundle(mode, cache, lookup) {
if (importee.endsWith('.html')) importee = importee.replace(/\.html$/, '.svelte');
if (importee in lookup) return importee;
throw new Error(`Could not resolve "${importee}" from "${importer}"`);
},
load(id) {
if (id.startsWith(`https://`)) return fetch_if_uncached(id);

Loading…
Cancel
Save