Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 2309498

Browse files
committed
chore: fix comments
1 parent b088448 commit 2309498

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hot.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,16 @@ function check(options) {
9191
result(modules, appliedModules);
9292

9393
if (upToDate()) {
94+
//Do not modify message - CLI depends on this exact content to determine hmr operation status.
9495
log.info(`Successfully applied update with hmr hash ${currentHash}. App is up to date.`);
9596
}
9697
})
9798
.catch((err) => {
9899
const status = module.hot.status();
99100
if (['abort', 'fail'].indexOf(status) >= 0) {
101+
//Do not modify message - CLI depends on this exact content to determine hmr operation status.
100102
log.warn(`Cannot apply update with hmr hash ${currentHash}.`);
101103
log.warn(err.stack || err.message);
102-
if (options.reload) {
103-
window.location.reload();
104-
}
105104
} else {
106105
log.warn(`Update failed: ${err.stack || err.message}`);
107106
}
@@ -130,6 +129,7 @@ function update(latestHash, options) {
130129
const status = module.hot.status();
131130

132131
if (status === 'idle') {
132+
//Do not modify message - CLI depends on this exact content to determine hmr operation status.
133133
log.info(`Checking for updates to the bundle with hmr hash ${currentHash}.`);
134134
check(options);
135135
} else if (['abort', 'fail'].indexOf(status) >= 0) {

0 commit comments

Comments
 (0)