This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +28
-22
lines changed Expand file tree Collapse file tree 3 files changed +28
-22
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88 "license" : " MIT" ,
99 "keywords" : [],
1010 "devDependencies" : {
11- "babel-core" : " ^6.24.1" ,
12- "babel-loader" : " ^7.0.0" ,
13- "babel-preset-react" : " ^6.24.1" ,
14- "babel-preset-stage-0" : " ^6.24.1" ,
15- "json-loader" : " ~0.5.4" ,
16- "react" : " ^15.5.4" ,
17- "react-dom" : " ^15.6.1" ,
18- "react-hot-loader" : " ^1.3.1" ,
19- "webpack" : " ^2.5.1" ,
20- "webpack-dev-server" : " ^2.4.5"
11+ "@babel/core" : " ^7.2.2" ,
12+ "@babel/preset-env" : " ^7.2.3" ,
13+ "@babel/preset-react" : " ^7.0.0" ,
14+ "babel-loader" : " ^8.0.5" ,
15+ "react" : " ^16.7.0" ,
16+ "react-dom" : " ^16.7.0" ,
17+ "react-hot-loader" : " ^4.6.3" ,
18+ "webpack" : " ^4.28.4" ,
19+ "webpack-dev-server" : " ^3.1.14"
2120 },
2221 "dependencies" : {
2322 "ipfs" : " file:../../"
24- }
23+ },
24+ "browserslist" : [
25+ " >1%" ,
26+ " not dead" ,
27+ " not ie <= 11" ,
28+ " not op_mini all"
29+ ]
2530}
Original file line number Diff line number Diff line change @@ -19,11 +19,18 @@ module.exports = {
1919 new webpack . HotModuleReplacementPlugin ( )
2020 ] ,
2121 module : {
22- loaders : [ {
23- test : / \. j s $ / ,
24- loaders : [ 'react-hot-loader' , 'babel-loader' ] ,
25- include : path . join ( __dirname , 'src' )
26- } , { test : / \. j s o n $ / , loader : 'json-loader' } ]
22+ rules : [
23+ {
24+ test : / \. j s $ / ,
25+ exclude : / n o d e _ m o d u l e s / ,
26+ use : {
27+ loader : 'babel-loader' ,
28+ options : {
29+ presets : [ '@babel/preset-env' , '@babel/preset-react' ]
30+ }
31+ }
32+ }
33+ ]
2734 } ,
2835 node : {
2936 fs : 'empty' ,
You can’t perform that action at this time.
0 commit comments