Skip to content

Commit 11a4e17

Browse files
gaearonGeorge Czabania
authored and
George Czabania
committed
Disable react-constant-elements because of bugs (facebook#534)
Disabled because of issues: * facebook#525 * https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/ TODO: Enable again when these issues are resolved.
1 parent 003b6ef commit 11a4e17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/babel.prod.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ module.exports = {
3333
regenerator: true
3434
}],
3535
// Optimization: hoist JSX that never changes out of render()
36-
require.resolve('babel-plugin-transform-react-constant-elements')
36+
// Disabled because of issues:
37+
// * https://github.com/facebookincubator/create-react-app/issues/525
38+
// * https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/
39+
// TODO: Enable again when these issues are resolved.
40+
// require.resolve('babel-plugin-transform-react-constant-elements')
3741
]
3842
};

0 commit comments

Comments
 (0)