From 5d846b543d3e5fa1e75ec427d83c796aeb350b95 Mon Sep 17 00:00:00 2001 From: Ilya Zayats Date: Thu, 24 Nov 2016 12:23:12 +0100 Subject: [PATCH] setTimeout -> setImmediate to be sure that bundle-analyzer is not killed if you run webpack through wrappers like grunt-webpack --- src/BundleAnalyzerPlugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BundleAnalyzerPlugin.js b/src/BundleAnalyzerPlugin.js index b30de465..a3174460 100644 --- a/src/BundleAnalyzerPlugin.js +++ b/src/BundleAnalyzerPlugin.js @@ -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); + }); } }); }