Skip to content

Commit

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

TODO: Enable again when these issues are resolved.
  • Loading branch information
gaearon authored and feiqitian committed Oct 25, 2016
1 parent f148a34 commit 63197c4
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 63197c4

Please sign in to comment.