Skip to content

Commit

Permalink
Adding an bundlestart event (#1435)
Browse files Browse the repository at this point in the history
Plugins should be able to run code before a build process starts.
  • Loading branch information
Tom-Julux authored and Jasper De Moor committed May 25, 2018
1 parent 83dfa3e commit 304eb5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ class Bundler extends EventEmitter {
});
});
}


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

let isInitialBundle = !this.entryAssets;
let startTime = Date.now();
this.pending = true;
Expand Down

0 comments on commit 304eb5f

Please sign in to comment.