Skip to content

Commit a4aec57

Browse files
committed
Converting warning to error, which is consistent with babel env config method
1 parent 1dc344c commit a4aec57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WebpackConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ class WebpackConfig {
410410
}
411411

412412
if (this.doesBabelRcFileExist()) {
413-
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.');
413+
throw new Error('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 the first argument to remove this error.');
414414
}
415415
}
416416

0 commit comments

Comments
 (0)