Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
NativeScript CLI Changelog
================

6.4.1 (2020, February 19)
===

### Fixed

* [Fixed #5251](https://github.com/NativeScript/nativescript-cli/issues/5251): External files are not livesynced


6.4.0 (2020, February 11)
===

Expand Down
13 changes: 8 additions & 5 deletions lib/services/webpack/webpack-compiler-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,8 @@ 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;
}

// Persist the previousHash value before calling `this.getUpdatedEmittedFiles` as it will modify the expectedHashes object with the current hash
const previousHash = this.expectedHashes[platformData.platformNameLowerCase];
let result;

if (prepareData.hmr) {
Expand All @@ -78,6 +75,12 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
};

this.$logger.trace("Generated data from webpack message:", data);

// the hash of the compilation is the same as the previous one and there are only hot updates produced
if (data.hasOnlyHotUpdateFiles && previousHash === message.hash) {
return;
}

if (data.files.length) {
this.emit(WEBPACK_COMPILATION_COMPLETE, data);
}
Expand Down
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nativescript",
"preferGlobal": true,
"version": "6.4.0",
"version": "6.4.1",
"author": "Telerik <[email protected]>",
"description": "Command-line interface for building NativeScript projects",
"bin": {
Expand Down