Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update Bundler.js (#1706)
  • Loading branch information
DeMoorJasper authored and devongovett committed Jul 11, 2018
1 parent e34a4d0 commit 2fa38c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Bundler.js
Expand Up @@ -213,8 +213,6 @@ class Bundler extends EventEmitter {
});
}

this.emit('buildStart', this.entryFiles);

let isInitialBundle = !this.entryAssets;
let startTime = Date.now();
this.pending = true;
Expand All @@ -226,6 +224,9 @@ class Bundler extends EventEmitter {
try {
// Start worker farm, watcher, etc. if needed
await this.start();

// Emit start event, after bundler is initialised
this.emit('buildStart', this.entryFiles);

// If this is the initial bundle, ensure the output directory exists, and resolve the main asset.
if (isInitialBundle) {
Expand Down

0 comments on commit 2fa38c1

Please sign in to comment.