Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 7eab5a2

Browse files
committed
refactor: change a variable type
1 parent 075ffb9 commit 7eab5a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/AngularApp/app/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (module["hot"]) {
1616

1717
module["hot"].accept(["./app.module"], () => {
1818
// Currently the context is needed only for application style modules.
19-
const moduleContext = "{}";
19+
const moduleContext = {};
2020
global["__hmrRefresh"](moduleContext);
2121
});
2222
}

lazy-ngmodule-hot-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const HOT_SELF_ACCEPT = "module.hot.accept();";
55
const HOT_DISPOSE = `
66
module.hot.dispose(() => {
77
// Currently the context is needed only for application style modules.
8-
const moduleContext = "{}";
8+
const moduleContext = {};
99
global.__hmrRefresh(moduleContext);
1010
});`;
1111
const HMR_HANDLER = `

0 commit comments

Comments
 (0)