diff --git a/lib/WebpackConfig.js b/lib/WebpackConfig.js index 131db1e1..c9de5fcd 100644 --- a/lib/WebpackConfig.js +++ b/lib/WebpackConfig.js @@ -397,7 +397,7 @@ class WebpackConfig { } if (this.doesBabelRcFileExist()) { - logger.warning('The "callback" argument of configureBabel() will not be used because your app already provides an external Babel configuration (e.g. a ".babelrc" or "babelrc.config.js" file or "babel" key in "package.json"). Use null as a first argument to remove that warning.'); + logger.warning('The "callback" argument of configureBabel() will not be used because your app already provides an external Babel configuration (e.g. a ".babelrc" or "babel.config.js" file or "babel" key in "package.json"). Use null as a first argument to remove that warning.'); } } @@ -416,7 +416,7 @@ class WebpackConfig { } if (this.doesBabelRcFileExist() && !allowedOptionsWithExternalConfig.includes(normalizedOptionKey)) { - logger.warning(`The "${normalizedOptionKey}" option of configureBabel() will not be used because your app already provides an external Babel configuration (e.g. a ".babelrc" or "babelrc.config.js" file or "babel" key in "package.json").`); + logger.warning(`The "${normalizedOptionKey}" option of configureBabel() will not be used because your app already provides an external Babel configuration (e.g. a ".babelrc" or "babel.config.js" file or "babel" key in "package.json").`); continue; } @@ -463,7 +463,7 @@ class WebpackConfig { } if (this.doesBabelRcFileExist()) { - throw new Error('The "callback" argument of configureBabelPresetEnv() will not be used because your app already provides an external Babel configuration (e.g. a ".babelrc" or "babelrc.config.js" file or "babel" key in "package.json").'); + throw new Error('The "callback" argument of configureBabelPresetEnv() will not be used because your app already provides an external Babel configuration (e.g. a ".babelrc" or "babel.config.js" file or "babel" key in "package.json").'); } this.babelPresetEnvOptionsCallback = callback;