File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
packages/babel-preset-react-app Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,8 @@ if (env === 'test') {
109
109
110
110
if ( env === 'production' ) {
111
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
- // ]);
112
+ plugins . push . apply ( plugins , [
113
+ require . resolve ( 'babel-plugin-transform-react-constant-elements' )
114
+ ] ) ;
120
115
}
121
116
}
You can’t perform that action at this time.
0 commit comments