Skip to content

Commit 6059984

Browse files
authored
fix(webpack): notify CLI even if there are compilation errors (#10141)
1 parent 671603a commit 6059984

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/webpack5/src/plugins/WatchStatePlugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,9 @@ export class WatchStatePlugin {
4949
isWatchMode ? messages.startWatching : messages.compilationComplete
5050
);
5151

52-
// Do not notify the CLI if the compilation failed
5352
const stats = compilation.getStats();
5453
if (stats.hasErrors()) {
55-
return;
54+
env.verbose && console.log(`[${id}] Warn: Compilation had errors!`);
5655
}
5756

5857
// logic taken from CleanWebpackPlugin

0 commit comments

Comments
 (0)