added more stuff to the hash

This commit is contained in:
Tobias Koppers 2016-02-04 00:06:16 +01:00
parent 90f558011b
commit 0eb5b20c58
3 changed files with 13 additions and 0 deletions

View File

@ -126,6 +126,7 @@ Module.prototype.needRebuild = function( /* fileTimestamps, contextTimestamps */
Module.prototype.updateHash = function(hash) {
hash.update(this.id + "" + this.used);
hash.update(JSON.stringify(this.usedExports));
DependenciesBlock.prototype.updateHash.call(this, hash);
};

View File

@ -38,6 +38,12 @@ HarmonyExportImportedSpecifierDependency.prototype.describeHarmonyExport = funct
};
};
HarmonyExportImportedSpecifierDependency.prototype.updateHash = function(hash) {
NullDependency.prototype.updateHash.call(this, hash);
var importedModule = dep.importDependency.module;
hash.update((importedModule && importedModule.id) + "")
};
HarmonyExportImportedSpecifierDependency.Template = function HarmonyExportImportedSpecifierDependencyTemplate() {};
HarmonyExportImportedSpecifierDependency.Template.prototype.apply = function(dep, source, outputOptions, requestShortener) {

View File

@ -26,6 +26,12 @@ HarmonyImportSpecifierDependency.prototype.getReference = function() {
};
}
HarmonyImportSpecifierDependency.prototype.updateHash = function(hash) {
NullDependency.prototype.updateHash.call(this, hash);
var importedModule = dep.importDependency.module;
hash.update((importedModule && importedModule.id) + "")
};
HarmonyImportSpecifierDependency.Template = function HarmonyImportSpecifierDependencyTemplate() {};
HarmonyImportSpecifierDependency.Template.prototype.apply = function(dep, source) {