From 63197c4769437fd8dad6c09fe4690b18443501f4 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 1 Sep 2016 17:51:28 +0100 Subject: [PATCH] Disable react-constant-elements because of bugs (#534) 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. --- config/babel.prod.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/babel.prod.js b/config/babel.prod.js index 32f4bd66583..107872181f5 100644 --- a/config/babel.prod.js +++ b/config/babel.prod.js @@ -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') ] };