Skip to content

Commit cd661d3

Browse files
committed
bug #765 Fixing babel.config.js filename in message (weaverryan)
This PR was merged into the master branch. Discussion ---------- Fixing babel.config.js filename in message Introduced in #738 - @jdreesen I think this was just a typo? Can you confirm that my PR is right? Thanks! Commits ------- c163909 fixing babel.config.js filename in message
2 parents b722a0e + c163909 commit cd661d3

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)