Skip to content

Commit 4b284ac

Browse files
committed
updateHash using this.type and this.request instead
this.request is JSON.stringified because otherwise an error will be thrown: TypeError: Data must be a string or a buffer This is because the target ID may be string or number.
1 parent 5cb7bfa commit 4b284ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/DelegatedModule.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ class DelegatedModule extends Module {
8989
}
9090

9191
updateHash(hash) {
92-
hash.update(this.identifier());
92+
hash.update(this.type);
93+
hash.update(JSON.stringify(this.request));
9394
super.updateHash(hash);
9495
}
9596
}

0 commit comments

Comments
 (0)