Skip to content

Commit

Permalink
- Fix bug while refactoring HotModuleReplacementPlugin as suggested i…
Browse files Browse the repository at this point in the history
…n PR
  • Loading branch information
Kyle Truong authored and Kyle Truong committed Jul 1, 2017
1 parent a6dea39 commit c3d8fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/HotModuleReplacementPlugin.js
Expand Up @@ -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);
});

Expand Down

0 comments on commit c3d8fdf

Please sign in to comment.