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 9, 2021
1 parent 925303d commit 5095936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
Expand Down

0 comments on commit 5095936

Please sign in to comment.