Prevent Babel config overridden (#5109)

This commit is contained in:
XiaoYan Li
2018-09-27 05:03:31 +08:00
committed by Joe Haddad
parent cbf532073e
commit 46b18d9f36
4 changed files with 6 additions and 0 deletions

View File

@@ -234,6 +234,7 @@ module.exports = {
options: {
// @remove-on-eject-begin
babelrc: false,
configFile: false,
presets: [require.resolve('babel-preset-react-app')],
// Make sure we have a unique cache identifier, erring on the
// side of caution.
@@ -289,6 +290,7 @@ module.exports = {
loader: require.resolve('babel-loader'),
options: {
babelrc: false,
configFile: false,
compact: false,
presets: [
[