Skip to content

Commit 100e3a7

Browse files
Re-enable transform-react-constant-elements
1 parent d6383d2 commit 100e3a7

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

packages/babel-preset-react-app/index.js

+3-8
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,8 @@ if (env === 'test') {
109109

110110
if (env === 'production') {
111111
// 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+
]);
120115
}
121116
}

0 commit comments

Comments
 (0)