Skip to content

Commit c163909

Browse files
committed
fixing babel.config.js filename in message
1 parent 7034b75 commit c163909

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/WebpackConfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class WebpackConfig {
397397
}
398398

399399
if (this.doesBabelRcFileExist()) {
400-
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.');
400+
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.');
401401
}
402402
}
403403

@@ -416,7 +416,7 @@ class WebpackConfig {
416416
}
417417

418418
if (this.doesBabelRcFileExist() && !allowedOptionsWithExternalConfig.includes(normalizedOptionKey)) {
419-
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").`);
419+
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").`);
420420
continue;
421421
}
422422

@@ -463,7 +463,7 @@ class WebpackConfig {
463463
}
464464

465465
if (this.doesBabelRcFileExist()) {
466-
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").');
466+
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").');
467467
}
468468

469469
this.babelPresetEnvOptionsCallback = callback;

0 commit comments

Comments
 (0)