Skip to content

Commit 955cac2

Browse files
authored
Simplified HMR for Shell (#189)
Simplified HMR Version now that we have shell loading working.
1 parent d172c89 commit 955cac2

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/app/main.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,7 @@ __webpack_public_path__ = window.resourceBaseUrl || '/assets/js/';
1414
await AppError(error);
1515
}
1616

17-
/**
18-
* @description Initialize the app.
19-
*/
2017
if (module.hot) {
21-
module.hot.accept(
22-
[
23-
'../.././.core/dependencies/index.js',
24-
'../.././.core/app.js',
25-
'../.././.core/sdk/index.js',
26-
],
27-
() => {
28-
window.location.reload();
29-
},
30-
);
18+
module.hot.accept(['../../.core/app/shell.js'], window.location.reload);
3119
}
3220
})();

0 commit comments

Comments
 (0)