mirror of https://github.com/webpack/webpack.git
Merge 51619a8f1a
into 9f98d803c0
This commit is contained in:
commit
219cb02e70
|
@ -1042,6 +1042,9 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|||
logger: this.getLogger("webpack.FileSystemInfo"),
|
||||
hashFunction: compiler.options.output.hashFunction
|
||||
});
|
||||
if (compiler.watchMode) {
|
||||
this.fileSystemInfo._checkContextTimestampHash = false;
|
||||
}
|
||||
if (compiler.fileTimestamps) {
|
||||
this.fileSystemInfo.addFileTimestamps(compiler.fileTimestamps, true);
|
||||
}
|
||||
|
|
|
@ -1245,6 +1245,7 @@ class FileSystemInfo {
|
|||
this._cachedDeprecatedContextTimestamps = undefined;
|
||||
|
||||
this._warnAboutExperimentalEsmTracking = false;
|
||||
this._checkContextTimestampHash = true;
|
||||
|
||||
this._statCreatedSnapshots = 0;
|
||||
this._statTestedSnapshotsCached = 0;
|
||||
|
@ -2918,6 +2919,7 @@ class FileSystemInfo {
|
|||
}
|
||||
const snap = /** @type {ResolvedContextFileSystemInfoEntry} */ (s);
|
||||
if (
|
||||
this._checkContextTimestampHash &&
|
||||
snap.timestampHash !== undefined &&
|
||||
c.timestampHash !== snap.timestampHash
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue