We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6dea39 commit c3d8fdfCopy full SHA for c3d8fdf
lib/HotModuleReplacementPlugin.js
@@ -153,7 +153,7 @@ module.exports = class HotModuleReplacementPlugin {
153
const buf = [source];
154
buf.push("");
155
buf.push("// __webpack_hash__");
156
- buf.push(`${this.requireFn}.h = () => hotCurrentHash`);
+ buf.push(this.requireFn + ".h = function() { return hotCurrentHash; };");
157
return this.asString(buf);
158
});
159
0 commit comments