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 44c8f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gulpfile.mjs
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 44c8f16

Please sign in to comment.