Skip to content

Commit

Permalink
fix(bundle): throw error if no entry file specified
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Oct 30, 2016
1 parent 08fa60e commit d2fbc70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/configure-bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export default async function(options) {
const WORKINGDIR = options.root;
const OUTPUTFILE = options.output || '[name].bundle.js';

if (!options.entry.length) {
throw new Error('No entry file specified!');
}

const files = await Promise.all(
options.entry.map(
f => existsFileAsync(fs, path.join(WORKINGDIR, f))
Expand Down

0 comments on commit d2fbc70

Please sign in to comment.