Skip to content

Commit

Permalink
fix(webpack): notify CLI even if there are compilation errors (#10141)
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed Mar 28, 2023
1 parent 671603a commit 6059984
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/webpack5/src/plugins/WatchStatePlugin.ts
Expand Up @@ -49,10 +49,9 @@ export class WatchStatePlugin {
isWatchMode ? messages.startWatching : messages.compilationComplete
);

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

// logic taken from CleanWebpackPlugin
Expand Down

0 comments on commit 6059984

Please sign in to comment.