File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,20 +18,7 @@ if(module.hot) {
1818
1919 module . hot . apply ( {
2020 ignoreUnaccepted : true
21- } , function ( err , renewedModules ) {
22- if ( err ) {
23- if ( module . hot . status ( ) in {
24- abort : 1 ,
25- fail : 1
26- } ) {
27- console . warn ( "[HMR] Cannot apply update. Need to do a full reload!" ) ;
28- console . warn ( "[HMR] " + err . stack || err . message ) ;
29- } else {
30- console . warn ( "[HMR] Update failed: " + err . stack || err . message ) ;
31- }
32- return ;
33- }
34-
21+ } ) . then ( function ( renewedModules ) {
3522 if ( ! upToDate ( ) ) {
3623 check ( ) ;
3724 }
@@ -41,6 +28,16 @@ if(module.hot) {
4128 if ( upToDate ( ) ) {
4229 console . log ( "[HMR] App is up to date." ) ;
4330 }
31+ } ) . catch ( function ( err ) {
32+ if ( module . hot . status ( ) in {
33+ abort : 1 ,
34+ fail : 1
35+ } ) {
36+ console . warn ( "[HMR] Cannot apply update. Need to do a full reload!" ) ;
37+ console . warn ( "[HMR] " + err . stack || err . message ) ;
38+ } else {
39+ console . warn ( "[HMR] Update failed: " + err . stack || err . message ) ;
40+ }
4441 } ) ;
4542 } ) . catch ( function ( err ) {
4643 if ( module . hot . status ( ) in {
You can’t perform that action at this time.
0 commit comments