Skip to content

Commit cc7a937

Browse files
Merge pull request #5137 from NativeScript/fatme/fix-no-hmr-sync
fix: fix livesync when `--no-hmr` option is provided and changes are reverted to the initial state of application
2 parents 954189b + a6d5eb5 commit cc7a937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/webpack/webpack-compiler-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
4242
if (message.emittedFiles) {
4343
if (isFirstWebpackWatchCompilation) {
4444
isFirstWebpackWatchCompilation = false;
45-
this.expectedHashes[platformData.platformNameLowerCase] = message.hash;
45+
this.expectedHashes[platformData.platformNameLowerCase] = prepareData.hmr ? message.hash : "";
4646
return;
4747
}
4848

0 commit comments

Comments
 (0)