Skip to content

Commit 7f2933b

Browse files
authored
Merge pull request #5101 from NativeScript/fatme/hmr-hash
fix: handle correctly the situation when the compilation hash is the same as the previous one
2 parents 4658457 + 516fd31 commit 7f2933b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
4646
return;
4747
}
4848

49+
// the hash of the compilation is the same as the previous one
50+
if (this.expectedHashes[platformData.platformNameLowerCase] === message.hash) {
51+
return;
52+
}
53+
4954
let result;
5055

5156
if (prepareData.hmr) {

0 commit comments

Comments
 (0)