mirror of https://github.com/webpack/webpack.git
added more stuff to the hash
This commit is contained in:
parent
90f558011b
commit
0eb5b20c58
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue