Skip to content

Commit 6fe904c

Browse files
authored
Disable react-constant-elements because of bugs (#534)
Disabled because of issues: * #525 * https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/ TODO: Enable again when these issues are resolved.
1 parent a52b697 commit 6fe904c

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)