Skip to content

Commit

Permalink
exit gracefully when CI does not have available workers
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jun 4, 2021
1 parent 58da240 commit c2575c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Gulpfile.mjs
Expand Up @@ -250,9 +250,7 @@ async function buildBabel(useWorker, ignore = []) {
promises.push(worker.transform(file, dest));
}
return Promise.all(promises).finally(() => {
if (useWorker) {
worker.end();
}
worker.end?.();
});
}

Expand Down

0 comments on commit c2575c7

Please sign in to comment.