Skip to content

Commit 41632fb

Browse files
authored
Revert "Bump babel deps and re-enable transform-react-constant-elements" (#1575)
1 parent e9493a2 commit 41632fb

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

packages/babel-preset-react-app/index.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,13 @@ if (env === 'test') {
109109

110110
if (env === 'production') {
111111
// Optimization: hoist JSX that never changes out of render()
112-
plugins.push.apply(plugins, [
113-
require.resolve('babel-plugin-transform-react-constant-elements')
114-
]);
112+
// Disabled because of issues:
113+
// * https://github.com/facebookincubator/create-react-app/issues/525
114+
// * https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/
115+
// * https://github.com/babel/babel/issues/4516
116+
// TODO: Enable again when these issues are resolved.
117+
// plugins.push.apply(plugins, [
118+
// require.resolve('babel-plugin-transform-react-constant-elements')
119+
// ]);
115120
}
116121
}

packages/babel-preset-react-app/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
],
1313
"dependencies": {
1414
"babel-plugin-syntax-dynamic-import": "6.18.0",
15-
"babel-plugin-transform-class-properties": "6.23.0",
16-
"babel-plugin-transform-es2015-parameters": "6.23.0",
17-
"babel-plugin-transform-object-rest-spread": "6.23.0",
18-
"babel-plugin-transform-react-constant-elements": "6.23.0",
19-
"babel-plugin-transform-react-jsx": "6.23.0",
15+
"babel-plugin-transform-class-properties": "6.22.0",
16+
"babel-plugin-transform-es2015-parameters": "6.22.0",
17+
"babel-plugin-transform-object-rest-spread": "6.22.0",
18+
"babel-plugin-transform-react-constant-elements": "6.22.0",
19+
"babel-plugin-transform-react-jsx": "6.22.0",
2020
"babel-plugin-transform-react-jsx-self": "6.22.0",
2121
"babel-plugin-transform-react-jsx-source": "6.22.0",
2222
"babel-plugin-transform-regenerator": "6.22.0",
23-
"babel-plugin-transform-runtime": "6.23.0",
23+
"babel-plugin-transform-runtime": "6.22.0",
2424
"babel-preset-env": "1.1.8",
2525
"babel-preset-latest": "6.22.0",
26-
"babel-preset-react": "6.23.0",
27-
"babel-runtime": "6.23.0"
26+
"babel-preset-react": "6.22.0",
27+
"babel-runtime": "6.22.0"
2828
}
2929
}

packages/react-scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"autoprefixer": "6.7.2",
27-
"babel-core": "6.23.1",
27+
"babel-core": "6.22.1",
2828
"babel-eslint": "7.1.1",
2929
"babel-jest": "18.0.0",
3030
"babel-loader": "6.2.10",

0 commit comments

Comments
 (0)