File tree Expand file tree Collapse file tree 4 files changed +2064
-3425
lines changed Expand file tree Collapse file tree 4 files changed +2064
-3425
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
"dev" : " webpack" ,
5
5
"prod" : " export NODE_ENV=production; webpack"
6
6
},
7
+ "engine" : {
8
+ "node" : " ^10.15.0"
9
+ },
7
10
"devDependencies" : {
8
- "babel-loader " : " ^7.1.4 " ,
9
- "babel- preset-env" : " ^1.6.1 " ,
10
- "babel- preset-es2015 " : " ^6.24.1 " ,
11
- "babel-preset-react " : " ^6.24.1 " ,
12
- "css-loader" : " ^0.28.11 " ,
13
- "mini-css-extract-plugin" : " ^0.4 .0" ,
14
- "webpack" : " ^4.6.0 " ,
15
- "webpack-cli" : " ^2.0.14 "
11
+ "@ babel/core " : " ^7.4.0 " ,
12
+ "@ babel/ preset-env" : " ^7.4.2 " ,
13
+ "@ babel/ preset-react " : " ^7.0.0 " ,
14
+ "babel-loader " : " ^8.0.5 " ,
15
+ "css-loader" : " ^2.1.1 " ,
16
+ "mini-css-extract-plugin" : " ^0.5 .0" ,
17
+ "webpack" : " 4.12.2 " ,
18
+ "webpack-cli" : " ^3.3.0 "
16
19
},
17
20
"dependencies" : {
18
21
"react" : " ^16.3.2" ,
Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ module.exports = () => {
12
12
{
13
13
test : / \. j s $ / ,
14
14
exclude : / n o d e _ m o d u l e s / ,
15
- use : [
16
- {
17
- loader : "babel-loader"
15
+ use : {
16
+ loader : 'babel-loader' ,
17
+ options : {
18
+ presets : [ '@babel/preset-env' , '@babel/react' ]
18
19
}
19
- ]
20
+ }
20
21
} ,
21
22
{
22
23
test : / \. c s s $ / ,
You can’t perform that action at this time.
0 commit comments