Skip to content

Commit 6c634ba

Browse files
committed
fix: prevent WebpackLogger 'done hook' error when callback throws
1 parent be761ef commit 6c634ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/BundleAnalyzerPlugin.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ class BundleAnalyzerPlugin {
6969
// Making analyzer logs to be after all webpack logs in the console
7070
setImmediate(async () => {
7171
try {
72-
await Promise.all(actions.map((action) => action()));
72+
await Promise.all(actions.map(action => action()));
73+
} finally {
7374
callback();
74-
} catch (err) {
75-
callback(err);
7675
}
7776
});
7877
} else {

0 commit comments

Comments
 (0)