Skip to content

Commit c55ec99

Browse files
lixiaoyanTimer
authored andcommitted
Prevent Babel config overridden (facebook#5109)
1 parent 04a5c34 commit c55ec99

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

config/jest/babelTransform.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ const babelJest = require('babel-jest');
1212
module.exports = babelJest.createTransformer({
1313
presets: [require.resolve('babel-preset-react-app')],
1414
babelrc: false,
15+
configFile: false,
1516
});

config/webpack.config.dev.js

+2
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ module.exports = {
234234
options: {
235235
// @remove-on-eject-begin
236236
babelrc: false,
237+
configFile: false,
237238
presets: [require.resolve('babel-preset-react-app')],
238239
// Make sure we have a unique cache identifier, erring on the
239240
// side of caution.
@@ -289,6 +290,7 @@ module.exports = {
289290
loader: require.resolve('babel-loader'),
290291
options: {
291292
babelrc: false,
293+
configFile: false,
292294
compact: false,
293295
presets: [
294296
[

config/webpack.config.prod.js

+2
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ module.exports = {
275275
options: {
276276
// @remove-on-eject-begin
277277
babelrc: false,
278+
configFile: false,
278279
presets: [require.resolve('babel-preset-react-app')],
279280
// Make sure we have a unique cache identifier, erring on the
280281
// side of caution.
@@ -323,6 +324,7 @@ module.exports = {
323324
loader: require.resolve('babel-loader'),
324325
options: {
325326
babelrc: false,
327+
configFile: false,
326328
compact: false,
327329
presets: [
328330
[

0 commit comments

Comments
 (0)