diff --git a/lib/controllers/migrate-controller.ts b/lib/controllers/migrate-controller.ts index 0b7d041408..ec49989a85 100644 --- a/lib/controllers/migrate-controller.ts +++ b/lib/controllers/migrate-controller.ts @@ -163,11 +163,14 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`; const cachedResult = await this.getCachedShouldMigrate(projectDir, platform); if (cachedResult !== false) { remainingPlatforms.push(platform); + } else { + this.$logger.trace(`Got cached result for shouldMigrate for platform: ${platform}`); } } if (remainingPlatforms.length > 0) { shouldMigrate = await this._shouldMigrate({ projectDir, platforms: remainingPlatforms, allowInvalidVersions }); + this.$logger.trace(`Executed shouldMigrate for platforms: ${remainingPlatforms}. Result is: ${shouldMigrate}`); if (!shouldMigrate) { for (const remainingPlatform of remainingPlatforms) { diff --git a/lib/services/webpack/webpack-compiler-service.ts b/lib/services/webpack/webpack-compiler-service.ts index 4f0dd015da..297e306bef 100644 --- a/lib/services/webpack/webpack-compiler-service.ts +++ b/lib/services/webpack/webpack-compiler-service.ts @@ -46,6 +46,11 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp return; } + // the hash of the compilation is the same as the previous one + if (this.expectedHashes[platformData.platformNameLowerCase] === message.hash) { + return; + } + let result; if (prepareData.hmr) { diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 8eddd47080..f51552202e 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { "name": "nativescript", - "version": "6.2.0", + "version": "6.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9eb590f2e0..06cd007e91 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nativescript", "preferGlobal": true, - "version": "6.2.0", + "version": "6.2.1", "author": "Telerik ", "description": "Command-line interface for building NativeScript projects", "bin": {