Skip to content

Commit c3d8fdf

Browse files
Kyle TruongKyle Truong
authored andcommitted
- Fix bug while refactoring HotModuleReplacementPlugin as suggested in PR
1 parent a6dea39 commit c3d8fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/HotModuleReplacementPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ module.exports = class HotModuleReplacementPlugin {
153153
const buf = [source];
154154
buf.push("");
155155
buf.push("// __webpack_hash__");
156-
buf.push(`${this.requireFn}.h = () => hotCurrentHash`);
156+
buf.push(this.requireFn + ".h = function() { return hotCurrentHash; };");
157157
return this.asString(buf);
158158
});
159159

0 commit comments

Comments
 (0)