Skip to content

Commit

Permalink
fix: Ignore EPIPE if the compiler input stream is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Schmidt authored and ChadKillingsworth committed Jan 3, 2021
1 parent a8aade6 commit 8e738c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/closure-compiler-plugin.js
Expand Up @@ -1045,6 +1045,9 @@ class ClosureCompilerPlugin {
resolve(outputFiles);
});

// Ignore errors (EPIPE) if the compiler input stream is closed
compilerProcess.stdin.on('error', (err) => {});

const buffer = new Buffer(JSON.stringify(sources), 'utf8');
const readable = new Readable();
readable._read = () => {};
Expand Down

0 comments on commit 8e738c1

Please sign in to comment.