File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,12 @@ if(module.hot) {
1515 return ;
1616 }
1717
18- if ( ! updatedModules )
19- return console . log ( "[HMR] No Update found." ) ;
18+ if ( ! updatedModules ) {
19+ console . warn ( "[HMR] Cannot find update. Need to do a full reload!" ) ;
20+ console . warn ( "[HMR] (Propably because of restarting the webpack-dev-server)" )
21+ window . location . reload ( ) ;
22+ return ;
23+ }
2024
2125 if ( ! upToDate ( ) ) {
2226 check ( ) ;
Original file line number Diff line number Diff line change @@ -14,8 +14,11 @@ if(module.hot) {
1414 return ;
1515 }
1616
17- if ( ! updatedModules )
18- return console . log ( "[HMR] No Update found." ) ;
17+ if ( ! updatedModules ) {
18+ console . warn ( "[HMR] Cannot find update. Need to do a full reload!" ) ;
19+ console . warn ( "[HMR] (Propably because of restarting the webpack-dev-server)" )
20+ return ;
21+ }
1922
2023 module . hot . apply ( {
2124 ignoreUnaccepted : true
You can’t perform that action at this time.
0 commit comments