diff --git a/packages/webpack-cli/lib/utils/Compiler.js b/packages/webpack-cli/lib/utils/Compiler.js index bc8848c414e..a54ef851325 100644 --- a/packages/webpack-cli/lib/utils/Compiler.js +++ b/packages/webpack-cli/lib/utils/Compiler.js @@ -118,7 +118,7 @@ class Compiler { } //warn the user if bail and watch both are used together - if (this.compiler.options.bail && this.compiler.watch) { + if (!this.compiler.compilers && this.compiler.options.bail && this.compiler.watch) { logger.warn('You are using "bail" with "watch". "bail" will still exit webpack when the first error is found.'); }