Skip to content

Commit a0c1fb6

Browse files
committed
fix: inconsistent module hashes on builds
1 parent ffe2e64 commit a0c1fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/TransformNormalModulePlugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ class TransformNormalModulePlugin {
579579
const hashDigest = outputOptions.hashDigest;
580580
const hashDigestLength = outputOptions.hashDigestLength;
581581

582-
if (module.buildInfo && module._initBuildHash) {
582+
if (module.buildInfo && module._initBuildHash && module._buildHash !== '') {
583583
module._initBuildHash(extra.compilation);
584584
}
585585

0 commit comments

Comments
 (0)