Browse Source

Add explicit entry resolve error message

Fixes #802
rollup-init
Eli Skeggs 9 years ago
committed by GitHub
parent
commit
60a4e406b6
  1. 1
      src/Bundle.js

1
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 );
})

Loading…
Cancel
Save