This repository was archived by the owner on Aug 7, 2021. It is now read-only.
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,17 +91,16 @@ function check(options) {
91
91
result ( modules , appliedModules ) ;
92
92
93
93
if ( upToDate ( ) ) {
94
+ //Do not modify message - CLI depends on this exact content to determine hmr operation status.
94
95
log . info ( `Successfully applied update with hmr hash ${ currentHash } . App is up to date.` ) ;
95
96
}
96
97
} )
97
98
. catch ( ( err ) => {
98
99
const status = module . hot . status ( ) ;
99
100
if ( [ 'abort' , 'fail' ] . indexOf ( status ) >= 0 ) {
101
+ //Do not modify message - CLI depends on this exact content to determine hmr operation status.
100
102
log . warn ( `Cannot apply update with hmr hash ${ currentHash } .` ) ;
101
103
log . warn ( err . stack || err . message ) ;
102
- if ( options . reload ) {
103
- window . location . reload ( ) ;
104
- }
105
104
} else {
106
105
log . warn ( `Update failed: ${ err . stack || err . message } ` ) ;
107
106
}
@@ -130,6 +129,7 @@ function update(latestHash, options) {
130
129
const status = module . hot . status ( ) ;
131
130
132
131
if ( status === 'idle' ) {
132
+ //Do not modify message - CLI depends on this exact content to determine hmr operation status.
133
133
log . info ( `Checking for updates to the bundle with hmr hash ${ currentHash } .` ) ;
134
134
check ( options ) ;
135
135
} else if ( [ 'abort' , 'fail' ] . indexOf ( status ) >= 0 ) {
You can’t perform that action at this time.
0 commit comments