Skip to content

Commit ee001bd

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy