File tree 3 files changed +5
-10
lines changed
3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ module.exports = function(api, opts) {
76
76
// Adds component stack to warning messages
77
77
// Adds __self attribute to JSX which React will use for some warnings
78
78
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 ,
79
82
} ,
80
83
] ,
81
84
isFlowEnabled && [ require ( '@babel/preset-flow' ) . default ] ,
@@ -99,13 +102,6 @@ module.exports = function(api, opts) {
99
102
useBuiltIns : true ,
100
103
} ,
101
104
] ,
102
- // Transforms JSX
103
- [
104
- require ( '@babel/plugin-transform-react-jsx' ) . default ,
105
- {
106
- useBuiltIns : true ,
107
- } ,
108
- ] ,
109
105
// Polyfills the runtime needed for async/await and generators
110
106
[
111
107
require ( '@babel/plugin-transform-runtime' ) . default ,
Original file line number Diff line number Diff line change 11
11
" index.js" ,
12
12
" dependencies.js"
13
13
],
14
- "dependencies" : {
14
+ "dependencies" : {
15
15
"@babel/core" : " 7.0.0-beta.42" ,
16
16
"@babel/plugin-proposal-class-properties" : " 7.0.0-beta.42" ,
17
+ "@babel/plugin-proposal-object-rest-spread" : " 7.0.0-beta.42" ,
17
18
"@babel/plugin-syntax-dynamic-import" : " 7.0.0-beta.42" ,
18
19
"@babel/plugin-transform-classes" : " 7.0.0-beta.42" ,
19
20
"@babel/plugin-transform-destructuring" : " 7.0.0-beta.42" ,
20
21
"@babel/plugin-transform-react-constant-elements" : " 7.0.0-beta.42" ,
21
22
"@babel/plugin-transform-react-display-name" : " 7.0.0-beta.42" ,
22
- "@babel/plugin-transform-react-jsx" : " 7.0.0-beta.42" ,
23
23
"@babel/plugin-transform-regenerator" : " 7.0.0-beta.42" ,
24
24
"@babel/plugin-transform-runtime" : " 7.0.0-beta.42" ,
25
25
"@babel/preset-env" : " 7.0.0-beta.42" ,
Original file line number Diff line number Diff line change @@ -1806,7 +1806,6 @@ After that, follow the instructions on the screen.
1806
1806
1807
1807
Learn more about React Storybook:
1808
1808
1809
- * Screencast: [Getting Started with React Storybook](https://egghead.io/lessons/react-getting-started-with-react-storybook)
1810
1809
* [GitHub Repo](https://github.com/storybooks/storybook)
1811
1810
* [Documentation](https://storybook.js.org/basics/introduction/)
1812
1811
* [Snapshot Testing UI](https://github.com/storybooks/storybook/tree/master/addons/storyshots) with Storybook + addon/storyshot
You can’t perform that action at this time.
0 commit comments