File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed
Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 11{
2- "presets" : [" react" , " env" ]
2+ "presets" : [" react" , " env" ],
3+ "plugins" : [
4+ [
5+ // See: https://github.com/babel/babel-preset-env/issues/49
6+ " transform-object-rest-spread" ,
7+ {
8+ "useBuiltIns" : true
9+ }
10+ ],
11+ " transform-class-properties"
12+ ]
313}
Original file line number Diff line number Diff line change 11# ReduxSimpleStarterRefreshed
22
3- This fork contains the following updates as of 3/27 /2018:
3+ This fork contains the following updates as of 3/28 /2018:
44- Upgraded to React 16.
55- Upgraded to React-Redux 5.
66- Upgraded to Webpack 4.
7- - Changed babel preset to 'env': https://www.npmjs.com/package/babel-preset-env
7+ - Changed babel preset to 'env': https://www.npmjs.com/package/babel-preset-env
88- Moved from using Mocha/Chai to Jest/Enzyme.
99- Package control using Yarn instead of NPM.
10+ - Added support for JS object rest spread (...destructuring) and class properties.
1011
1112Interested in learning [ Redux] ( https://www.udemy.com/react-redux/ ) ?
1213
@@ -38,4 +39,4 @@ This repo uses Jest and Enzyme for testing. Here's a great video intro: https://
3839```
3940> yarn test
4041> yarn test:watch # tests will run as you make modifications
41- ```
42+ ```
Original file line number Diff line number Diff line change 1212 "author" : " " ,
1313 "license" : " ISC" ,
1414 "devDependencies" : {
15+ "babel-jest" : " ^22.4.3" ,
1516 "enzyme" : " ^3.3.0" ,
1617 "enzyme-adapter-react-16" : " ^1.1.1" ,
1718 "jest" : " ^22.4.3" ,
2223 },
2324 "dependencies" : {
2425 "babel-loader" : " ^7.1.4" ,
26+ "babel-plugin-transform-class-properties" : " ^6.24.1" ,
27+ "babel-plugin-transform-object-rest-spread" : " ^6.26.0" ,
28+ "babel-polyfill" : " ^6.26.0" ,
2529 "babel-preset-env" : " ^1.6.1" ,
2630 "babel-preset-react" : " ^6.24.1" ,
2731 "react" : " ^16.2.0" ,
You can’t perform that action at this time.
0 commit comments