From 6b5129650bf8b369e7c93e8f31d1ae4cf769b247 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Fri, 2 Jul 2021 16:34:51 +0200 Subject: [PATCH] adopt webpack stream changes --- build/lib/extensions.js | 4 ++-- build/lib/extensions.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/lib/extensions.js b/build/lib/extensions.js index cf31dbdd2b5..eafb64b9190 100644 --- a/build/lib/extensions.js +++ b/build/lib/extensions.js @@ -390,7 +390,7 @@ async function webpackExtensions(taskName, isWatch, webpackConfigLocations) { reject(); } else { - reporter(stats.toJson()); + reporter(stats === null || stats === void 0 ? void 0 : stats.toJson()); } }); } @@ -401,7 +401,7 @@ async function webpackExtensions(taskName, isWatch, webpackConfigLocations) { reject(); } else { - reporter(stats.toJson()); + reporter(stats === null || stats === void 0 ? void 0 : stats.toJson()); resolve(); } }); diff --git a/build/lib/extensions.ts b/build/lib/extensions.ts index bd7b508bb03..8e091cae74b 100644 --- a/build/lib/extensions.ts +++ b/build/lib/extensions.ts @@ -475,7 +475,7 @@ export async function webpackExtensions(taskName: string, isWatch: boolean, webp if (err) { reject(); } else { - reporter(stats.toJson()); + reporter(stats?.toJson()); } }); } else { @@ -484,7 +484,7 @@ export async function webpackExtensions(taskName: string, isWatch: boolean, webp fancyLog.error(err); reject(); } else { - reporter(stats.toJson()); + reporter(stats?.toJson()); resolve(); } });