Skip to content

Commit

Permalink
perf: pipe worker stdout/stderr to parent process
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jun 9, 2021
1 parent 9ed7880 commit 71fd2e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gulpfile.mjs
Expand Up @@ -223,8 +223,8 @@ function createWorker(useWorker) {
numWorkers,
exposedMethods: ["transform"],
});
worker.getStdout().on("data", chunk => process.stdout.write(chunk));
worker.getStderr().on("data", chunk => process.stderr.write(chunk));
worker.getStdout().pipe(process.stdout);
worker.getStderr().pipe(process.stderr);
return worker;
}

Expand Down

0 comments on commit 71fd2e9

Please sign in to comment.