From 348522a5c9fa08225e786ad0445910bbcb630983 Mon Sep 17 00:00:00 2001 From: Brian Ng Date: Tue, 14 Feb 2017 21:06:19 -0600 Subject: [PATCH] Re-enable transform-react-constant-elements (#1552) * Bump babel deps * Re-enable transform-react-constant-elements Resolves #553 --- packages/babel-preset-react-app/index.js | 11 +++-------- packages/babel-preset-react-app/package.json | 16 ++++++++-------- packages/react-scripts/package.json | 2 +- 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/packages/babel-preset-react-app/index.js b/packages/babel-preset-react-app/index.js index 1204e05e6cb..a81fbdb9984 100644 --- a/packages/babel-preset-react-app/index.js +++ b/packages/babel-preset-react-app/index.js @@ -109,13 +109,8 @@ if (env === 'test') { if (env === 'production') { // Optimization: hoist JSX that never changes out of render() - // 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') - // ]); + plugins.push.apply(plugins, [ + require.resolve('babel-plugin-transform-react-constant-elements') + ]); } } diff --git a/packages/babel-preset-react-app/package.json b/packages/babel-preset-react-app/package.json index f281ebc5865..7e736427c48 100644 --- a/packages/babel-preset-react-app/package.json +++ b/packages/babel-preset-react-app/package.json @@ -12,18 +12,18 @@ ], "dependencies": { "babel-plugin-syntax-dynamic-import": "6.18.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-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-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.22.0", + "babel-plugin-transform-runtime": "6.23.0", "babel-preset-env": "1.1.8", "babel-preset-latest": "6.22.0", - "babel-preset-react": "6.22.0", - "babel-runtime": "6.22.0" + "babel-preset-react": "6.23.0", + "babel-runtime": "6.23.0" } } diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 452a647ea3c..204bfd36cef 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "autoprefixer": "6.7.2", - "babel-core": "6.22.1", + "babel-core": "6.23.1", "babel-eslint": "7.1.1", "babel-jest": "18.0.0", "babel-loader": "6.2.10",