Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 3d8f91a

Browse files
christiantinauers-panferov
authored andcommitted
fix: don't kill the loader when compilation.bail = true (#448)
- Removed check for compilation.bail = true and treat error message as in non-bail mode. - Loader is not killed anymore (removed process.exit(1)) as this should be done by the caller of the loader. - All error messages are reported now as they are already generated at that moment.
1 parent c073af1 commit 3d8f91a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/instance.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,6 @@ function setupAfterCompile(compiler, instanceName, forkChecker = false) {
435435
const asyncErrors = watchMode === WatchMode.Enabled && !silent;
436436

437437
let emitError = (msg) => {
438-
if (compilation.bail) {
439-
console.error('Error in bail mode:', msg);
440-
process.exit(1);
441-
}
442-
443438
if (asyncErrors) {
444439
console.log(msg, '\n');
445440
} else {

0 commit comments

Comments
 (0)