Skip to content

Commit 3823eae

Browse files
committed
Use process.exitCode instead of process.exit in compilerCallback
1 parent 8988dc8 commit 3823eae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/webpack.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,8 @@ yargs.parse(process.argv.slice(2), (err, argv, output) => {
364364
lastHash = null;
365365
console.error(err.stack || err);
366366
if(err.details) console.error(err.details);
367-
process.exit(1); // eslint-disable-line
367+
process.exitCode = 1;
368+
return;
368369
}
369370
if(outputOptions.json) {
370371
process.stdout.write(JSON.stringify(stats.toJson(outputOptions), null, 2) + "\n");

0 commit comments

Comments
 (0)