Skip to content

Commit ee001bd

Browse files
committed
fix: use process.exitCode instead of process.exit in compilerCallback
1 parent 7b1e946 commit ee001bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎bin/cli.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ For more information, see https://webpack.js.org/api/cli/.`);
314314
lastHash=null;
315315
console.error(err.stack||err);
316316
if(err.details)console.error(err.details);
317-
process.exit(1);// eslint-disable-line
317+
process.exitCode=1;
318+
return;
318319
}
319320
if(outputOptions.json){
320321
stdout.write(JSON.stringify(stats.toJson(outputOptions),null,2)+"\n");

0 commit comments

Comments
 (0)