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 2536740b37d..5da72edf1e9 100644 --- a/packages/babel-preset-react-app/package.json +++ b/packages/babel-preset-react-app/package.json @@ -11,15 +11,15 @@ "index.js", "dependencies.js" ], - "dependencies": { + "dependencies": { "@babel/core": "7.0.0-beta.42", "@babel/plugin-proposal-class-properties": "7.0.0-beta.42", + "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.42", "@babel/plugin-syntax-dynamic-import": "7.0.0-beta.42", "@babel/plugin-transform-classes": "7.0.0-beta.42", "@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", diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 8d282b52fe4..f7d635ebfe5 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -1806,7 +1806,6 @@ After that, follow the instructions on the screen. Learn more about React Storybook: -* Screencast: [Getting Started with React Storybook](https://egghead.io/lessons/react-getting-started-with-react-storybook) * [GitHub Repo](https://github.com/storybooks/storybook) * [Documentation](https://storybook.js.org/basics/introduction/) * [Snapshot Testing UI](https://github.com/storybooks/storybook/tree/master/addons/storyshots) with Storybook + addon/storyshot