We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6383d2 commit 100e3a7Copy full SHA for 100e3a7
packages/babel-preset-react-app/index.js
@@ -109,13 +109,8 @@ if (env === 'test') {
109
110
if (env === 'production') {
111
// Optimization: hoist JSX that never changes out of render()
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
- // ]);
+ plugins.push.apply(plugins, [
+ require.resolve('babel-plugin-transform-react-constant-elements')
+ ]);
120
}
121
0 commit comments