Skip to content

Commit

Permalink
fix: use process.exitCode instead of process.exit in compilerCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
lneveu committed Sep 13, 2019
1 parent 7b1e946 commit ee001bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/cli.js
Expand Up @@ -314,7 +314,8 @@ For more information, see https://webpack.js.org/api/cli/.`);
lastHash = null;
console.error(err.stack || err);
if (err.details) console.error(err.details);
process.exit(1); // eslint-disable-line
process.exitCode = 1;
return;
}
if (outputOptions.json) {
stdout.write(JSON.stringify(stats.toJson(outputOptions), null, 2) + "\n");
Expand Down

0 comments on commit ee001bd

Please sign in to comment.