From c3d8fdffc8d3708f656d3155e31e616be9f82dcd Mon Sep 17 00:00:00 2001 From: Kyle Truong Date: Sat, 1 Jul 2017 12:13:33 -0400 Subject: [PATCH] - Fix bug while refactoring HotModuleReplacementPlugin as suggested in PR --- lib/HotModuleReplacementPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/HotModuleReplacementPlugin.js b/lib/HotModuleReplacementPlugin.js index 15850dd2e91..c0293bce068 100644 --- a/lib/HotModuleReplacementPlugin.js +++ b/lib/HotModuleReplacementPlugin.js @@ -153,7 +153,7 @@ module.exports = class HotModuleReplacementPlugin { const buf = [source]; buf.push(""); buf.push("// __webpack_hash__"); - buf.push(`${this.requireFn}.h = () => hotCurrentHash`); + buf.push(this.requireFn + ".h = function() { return hotCurrentHash; };"); return this.asString(buf); });