We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d140eac commit 03b0b3aCopy full SHA for 03b0b3a
index.js
@@ -48,7 +48,7 @@ function Angular2HMRLoader(source, sourcemap) {
48
' module["hot"]["accept"]();'+ newLine +
49
' '+ newLine +
50
' if (MODULE_REF.instance["hmrOnInit"]) {'+ newLine +
51
- ' MODULE_REF.instance["hmrOnInit"](module["hot"]["data"]);'+ newLine +
+ ' module["hot"]["data"] && MODULE_REF.instance["hmrOnInit"](module["hot"]["data"]);'+ newLine +
52
' }'+ newLine +
53
' if (MODULE_REF.instance["hmrOnStatus"]) {'+ newLine +
54
' module["hot"]["apply"](function(status) {'+ newLine +
0 commit comments