Skip to content

Commit

Permalink
Add a buildError event to bundler (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeMoorJasper authored and devongovett committed Jul 1, 2018
1 parent 9200e9a commit ead365c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Bundler.js
Expand Up @@ -301,7 +301,11 @@ class Bundler extends EventEmitter {
return this.mainBundle;
} catch (err) {
this.error = err;

logger.error(err);

this.emit('buildError', err);

if (this.hmr) {
this.hmr.emitError(err);
}
Expand Down

0 comments on commit ead365c

Please sign in to comment.