Skip to content

Commit

Permalink
Disable react-constant-elements because of bugs (#534)
Browse files Browse the repository at this point in the history
Disabled because of issues:
 * #525
 * https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/

TODO: Enable again when these issues are resolved.
  • Loading branch information
gaearon authored Sep 1, 2016
1 parent a52b697 commit 6fe904c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/babel.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ module.exports = {
regenerator: true
}],
// Optimization: hoist JSX that never changes out of render()
require.resolve('babel-plugin-transform-react-constant-elements')
// Disabled because of issues:
// * https://github.com/facebookincubator/create-react-app/issues/525
// * https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/
// TODO: Enable again when these issues are resolved.
// require.resolve('babel-plugin-transform-react-constant-elements')
]
};

0 comments on commit 6fe904c

Please sign in to comment.