Skip to content

Commit a827a3d

Browse files
authored
fix: hmr for hermes engine (#10669)
1 parent 2afed08 commit a827a3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/webpack5/src/loaders/nativescript-hot-loader/hmr.runtime.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ if (module.hot) {
5959
},
6060
};
6161

62-
const checkAndApply = async () => {
62+
const checkAndApply = async function () {
6363
hash = __webpack_require__.h();
6464
const modules = await module.hot.check().catch((error) => {
6565
return setStatus(
6666
hash,
6767
'failure',
6868
'Failed to check.',
69-
error.message || error.stack
69+
error.message || error.stack,
7070
);
7171
});
7272

@@ -82,7 +82,7 @@ if (module.hot) {
8282
hash,
8383
'failure',
8484
'Failed to apply.',
85-
error.message || error.stack
85+
error.message || error.stack,
8686
);
8787
});
8888

0 commit comments

Comments
 (0)