Skip to content

Commit

Permalink
Merge pull request #21 from somebody32/patch-1
Browse files Browse the repository at this point in the history
Replace `setTimeout` with  `setImmediate`
  • Loading branch information
th0r committed Nov 24, 2016
2 parents 33f5332 + 5d846b5 commit d3e0da5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BundleAnalyzerPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ class BundleAnalyzerPlugin {

if (actions.length) {
// Making analyzer logs to be after all webpack logs in the console
setTimeout(() => {
setImmediate(() => {
console.log('');
actions.forEach(action => action());
}, 200);
});
}
});
}
Expand Down

0 comments on commit d3e0da5

Please sign in to comment.