Skip to content

Commit

Permalink
setTimeout -> setImmediate
Browse files Browse the repository at this point in the history
to be sure that bundle-analyzer is not killed if you run webpack through wrappers like grunt-webpack
  • Loading branch information
somebody32 authored Nov 24, 2016
1 parent 33f5332 commit 5d846b5
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 5d846b5

Please sign in to comment.