Skip to content

Commit 30329fb

Browse files
authored
Merge pull request webpack#6193 from crvv/master
Fix webpack hanging under certain circumstance, use process.exitCode instead of process.exit in compilerCallback
2 parents 1468567 + 3823eae commit 30329fb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)