From 2511745ca1a4f95f80522483b42bd3fe2a21c349 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Mon, 11 Mar 2019 14:13:03 -0400 Subject: [PATCH] repl: better bundling error when unable to resolve module (#2208) --- site/static/workers/bundler.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/static/workers/bundler.js b/site/static/workers/bundler.js index 2874820529..678612c350 100644 --- a/site/static/workers/bundler.js +++ b/site/static/workers/bundler.js @@ -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);