diff --git a/packages/babel-preset-react-app/index.js b/packages/babel-preset-react-app/index.js index 6ec10b5a0cd..87b070070d9 100644 --- a/packages/babel-preset-react-app/index.js +++ b/packages/babel-preset-react-app/index.js @@ -76,6 +76,9 @@ module.exports = function(api, opts) { // Adds component stack to warning messages // Adds __self attribute to JSX which React will use for some warnings development: isEnvDevelopment || isEnvTest, + // Will use the native built-in instead of trying to polyfill + // behavior for any plugins that require one. + useBuiltIns: true, }, ], isFlowEnabled && [require('@babel/preset-flow').default], @@ -99,13 +102,6 @@ module.exports = function(api, opts) { useBuiltIns: true, }, ], - // Transforms JSX - [ - require('@babel/plugin-transform-react-jsx').default, - { - useBuiltIns: true, - }, - ], // Polyfills the runtime needed for async/await and generators [ require('@babel/plugin-transform-runtime').default, diff --git a/packages/babel-preset-react-app/package.json b/packages/babel-preset-react-app/package.json index 1f0297df0cc..3c620b55be3 100644 --- a/packages/babel-preset-react-app/package.json +++ b/packages/babel-preset-react-app/package.json @@ -20,7 +20,6 @@ "@babel/plugin-transform-destructuring": "7.0.0-beta.42", "@babel/plugin-transform-react-constant-elements": "7.0.0-beta.42", "@babel/plugin-transform-react-display-name": "7.0.0-beta.42", - "@babel/plugin-transform-react-jsx": "7.0.0-beta.42", "@babel/plugin-transform-regenerator": "7.0.0-beta.42", "@babel/plugin-transform-runtime": "7.0.0-beta.42", "@babel/preset-env": "7.0.0-beta.42",