From 60a4e406b6927f1c910f7e4e6f5c2e242bbcabb9 Mon Sep 17 00:00:00 2001 From: Eli Skeggs Date: Thu, 28 Jul 2016 15:46:10 -0700 Subject: [PATCH] Add explicit entry resolve error message Fixes #802 --- src/Bundle.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Bundle.js b/src/Bundle.js index 96b2486..84a5481 100644 --- a/src/Bundle.js +++ b/src/Bundle.js @@ -88,6 +88,7 @@ export default class Bundle { // of the entry module's dependencies return this.resolveId( this.entry, undefined ) .then( id => { + if ( id == null ) throw new Error( `Could not resolve entry (${this.entry})` ); this.entryId = id; return this.fetchModule( id, undefined ); })