From 44c8f169986409912b84f9380e3f39414bbfaace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 4 Jun 2021 15:34:34 -0400 Subject: [PATCH] exit gracefully when CI does not have available workers --- Gulpfile.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gulpfile.mjs b/Gulpfile.mjs index 7a5a7e8d5957..b98804677bed 100644 --- a/Gulpfile.mjs +++ b/Gulpfile.mjs @@ -250,7 +250,7 @@ async function buildBabel(useWorker, ignore = []) { promises.push(worker.transform(file, dest)); } return Promise.all(promises).finally(() => { - if (useWorker) { + if (worker.end !== undefined) { worker.end(); } });