Skip to content

Commit

Permalink
Revert "Bump babel deps and re-enable transform-react-constant-elemen…
Browse files Browse the repository at this point in the history
…ts" (facebook#1575)
  • Loading branch information
gaearon authored and Daniel Figueiredo committed Feb 22, 2017
1 parent 17f01fc commit 2f789ce
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
11 changes: 8 additions & 3 deletions packages/babel-preset-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,13 @@ if (env === 'test') {

if (env === 'production') {
// Optimization: hoist JSX that never changes out of render()
plugins.push.apply(plugins, [
require.resolve('babel-plugin-transform-react-constant-elements')
]);
// Disabled because of issues:
// * https://github.com/facebookincubator/create-react-app/issues/525
// * https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/
// * https://github.com/babel/babel/issues/4516
// TODO: Enable again when these issues are resolved.
// plugins.push.apply(plugins, [
// require.resolve('babel-plugin-transform-react-constant-elements')
// ]);
}
}
16 changes: 8 additions & 8 deletions packages/babel-preset-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
],
"dependencies": {
"babel-plugin-syntax-dynamic-import": "6.18.0",
"babel-plugin-transform-class-properties": "6.23.0",
"babel-plugin-transform-es2015-parameters": "6.23.0",
"babel-plugin-transform-object-rest-spread": "6.23.0",
"babel-plugin-transform-react-constant-elements": "6.23.0",
"babel-plugin-transform-react-jsx": "6.23.0",
"babel-plugin-transform-class-properties": "6.22.0",
"babel-plugin-transform-es2015-parameters": "6.22.0",
"babel-plugin-transform-object-rest-spread": "6.22.0",
"babel-plugin-transform-react-constant-elements": "6.22.0",
"babel-plugin-transform-react-jsx": "6.22.0",
"babel-plugin-transform-react-jsx-self": "6.22.0",
"babel-plugin-transform-react-jsx-source": "6.22.0",
"babel-plugin-transform-regenerator": "6.22.0",
"babel-plugin-transform-runtime": "6.23.0",
"babel-plugin-transform-runtime": "6.22.0",
"babel-preset-env": "1.1.8",
"babel-preset-latest": "6.22.0",
"babel-preset-react": "6.23.0",
"babel-runtime": "6.23.0"
"babel-preset-react": "6.22.0",
"babel-runtime": "6.22.0"
}
}
2 changes: 1 addition & 1 deletion packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"dependencies": {
"autoprefixer": "6.7.2",
"babel-core": "6.23.1",
"babel-core": "6.22.1",
"babel-eslint": "7.1.1",
"babel-jest": "18.0.0",
"babel-loader": "6.2.10",
Expand Down

0 comments on commit 2f789ce

Please sign in to comment.