Skip to content

Commit

Permalink
Re-enable transform-react-constant-elements
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Feb 15, 2017
1 parent d6383d2 commit 100e3a7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/babel-preset-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
]);
}
}

0 comments on commit 100e3a7

Please sign in to comment.