Skip to content

Commit dbeaeb2

Browse files
committed
refactor: condition
1 parent e8bbb24 commit dbeaeb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/webpack-cli/lib/utils/Compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Compiler {
118118
}
119119

120120
//warn the user if bail and watch both are used together
121-
if (this.compiler.options.bail && (outputOptions.watch || options.watch)) {
121+
if (this.compiler.options.bail && this.compiler.watch) {
122122
logger.warn('You are using "bail" with "watch". "bail" will still exit webpack when the first error is found.');
123123
}
124124

0 commit comments

Comments
 (0)