File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 2121 "@types/react-dom" : " ^16.9.4" ,
2222 "@types/react-redux" : " ^7.1.5" ,
2323 "@types/redux-logger" : " ^3.0.7" ,
24- "react-hot-loader" : " ^4.12.18" ,
2524 "redux-logger" : " ^3.0.6" ,
2625 "typescript" : " ^3.7.2" ,
27- "webpack-genius" : " ^4.1.1 "
26+ "webpack-genius" : " ^4.1.4 "
2827 }
2928}
Original file line number Diff line number Diff line change 1- import { hot } from 'react-hot-loader/root' ;
21import React , { FunctionComponent } from 'react' ;
32import Normal from './Normal' ;
43import Request from './Request' ;
@@ -14,4 +13,4 @@ const App: FunctionComponent = () => {
1413 ) ;
1514} ;
1615
17- export default hot ( App ) ;
16+ export default App ;
Original file line number Diff line number Diff line change 1- import 'react-hot-loader' ;
21import React from 'react' ;
32import ReactDom from 'react-dom' ;
43import { Provider } from 'react-redux' ;
4+ import HotReact from 'webpack-genius/hot/react' ;
55import { applyMiddleware , compose } from 'redux' ;
66import { rootReducers } from './reducers' ;
77import { rootMiddleWares } from './middleware' ;
@@ -21,7 +21,9 @@ const store = createReduxStore({
2121ReactDom . render (
2222 < Provider store = { store } >
2323 < PersistGate >
24- < App />
24+ < HotReact >
25+ < App />
26+ </ HotReact >
2527 </ PersistGate >
2628 </ Provider > ,
2729 document . getElementById ( 'root' ) ,
Original file line number Diff line number Diff line change @@ -7828,10 +7828,10 @@ webpack-dev-server@^3.9.0:
78287828 ws "^6.2.1"
78297829 yargs "12.0.5"
78307830
7831- webpack-genius@^4.1.1 :
7832- version "4.1.1 "
7833- resolved "https://registry.npmjs.org/webpack-genius/-/webpack-genius-4.1.1 .tgz#ce4e44fe827d90d6a5de0aa9e255899b7e2894ab "
7834- integrity sha512-679Wn7nkbiCUpuOrmpxTrU1W64VxsVESmnM0sJnOKzqdB4ctqQPMS0Z/PzplfOMM8LDFNYvijRU4N0EtE6hbyg ==
7831+ webpack-genius@^4.1.4 :
7832+ version "4.1.4 "
7833+ resolved "https://registry.npmjs.org/webpack-genius/-/webpack-genius-4.1.4 .tgz#7e354279bb4eb0cd8613c64d23fe8e8cef5378e4 "
7834+ integrity sha512-/lySqWEahaNgG7Qeg4wOEiH9Pf2LSBYxuNz+SWmd2L7XU35/TfF4WYEBpHAJereriSOboFFqCwWb+qvzUZ6VsA ==
78357835 dependencies :
78367836 " @babel/core" " ^7.7.2"
78377837 " @babel/plugin-proposal-class-properties" " ^7.7.0"
@@ -7864,6 +7864,7 @@ webpack-genius@^4.1.1:
78647864 optimize-css-assets-webpack-plugin "^5.0.3"
78657865 postcss-loader "^3.0.0"
78667866 react-dev-utils "^9.1.0"
7867+ react-hot-loader "^4.12.18"
78677868 sass-loader "^8.0.0"
78687869 style-loader "^1.0.0"
78697870 ts-node "^8.5.0"
You can’t perform that action at this time.
0 commit comments