Skip to content

Commit 087cc23

Browse files
author
Rezak OTMANI
committed
Bump babel-related deps (facebook#4159)
2 parents 33bf347 + cb3f835 commit 087cc23

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

packages/babel-preset-react-app/index.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ module.exports = function(api, opts) {
7676
// Adds component stack to warning messages
7777
// Adds __self attribute to JSX which React will use for some warnings
7878
development: isEnvDevelopment || isEnvTest,
79+
// Will use the native built-in instead of trying to polyfill
80+
// behavior for any plugins that require one.
81+
useBuiltIns: true,
7982
},
8083
],
8184
isFlowEnabled && [require('@babel/preset-flow').default],
@@ -99,13 +102,6 @@ module.exports = function(api, opts) {
99102
useBuiltIns: true,
100103
},
101104
],
102-
// Transforms JSX
103-
[
104-
require('@babel/plugin-transform-react-jsx').default,
105-
{
106-
useBuiltIns: true,
107-
},
108-
],
109105
// Polyfills the runtime needed for async/await and generators
110106
[
111107
require('@babel/plugin-transform-runtime').default,

packages/babel-preset-react-app/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"index.js",
1212
"dependencies.js"
1313
],
14-
"dependencies": {
14+
"dependencies": {
1515
"@babel/core": "7.0.0-beta.42",
1616
"@babel/plugin-proposal-class-properties": "7.0.0-beta.42",
17+
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.42",
1718
"@babel/plugin-syntax-dynamic-import": "7.0.0-beta.42",
1819
"@babel/plugin-transform-classes": "7.0.0-beta.42",
1920
"@babel/plugin-transform-destructuring": "7.0.0-beta.42",
2021
"@babel/plugin-transform-react-constant-elements": "7.0.0-beta.42",
2122
"@babel/plugin-transform-react-display-name": "7.0.0-beta.42",
22-
"@babel/plugin-transform-react-jsx": "7.0.0-beta.42",
2323
"@babel/plugin-transform-regenerator": "7.0.0-beta.42",
2424
"@babel/plugin-transform-runtime": "7.0.0-beta.42",
2525
"@babel/preset-env": "7.0.0-beta.42",

packages/react-scripts/template/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,6 @@ After that, follow the instructions on the screen.
18061806
18071807
Learn more about React Storybook:
18081808
1809-
* Screencast: [Getting Started with React Storybook](https://egghead.io/lessons/react-getting-started-with-react-storybook)
18101809
* [GitHub Repo](https://github.com/storybooks/storybook)
18111810
* [Documentation](https://storybook.js.org/basics/introduction/)
18121811
* [Snapshot Testing UI](https://github.com/storybooks/storybook/tree/master/addons/storyshots) with Storybook + addon/storyshot

0 commit comments

Comments
 (0)