diff --git a/packages/webpack5/src/loaders/nativescript-hot-loader/hmr.runtime.ts b/packages/webpack5/src/loaders/nativescript-hot-loader/hmr.runtime.ts index bb8a315d1d..3d71fa837c 100644 --- a/packages/webpack5/src/loaders/nativescript-hot-loader/hmr.runtime.ts +++ b/packages/webpack5/src/loaders/nativescript-hot-loader/hmr.runtime.ts @@ -59,14 +59,14 @@ if (module.hot) { }, }; - const checkAndApply = async () => { + const checkAndApply = async function () { hash = __webpack_require__.h(); const modules = await module.hot.check().catch((error) => { return setStatus( hash, 'failure', 'Failed to check.', - error.message || error.stack + error.message || error.stack, ); }); @@ -82,7 +82,7 @@ if (module.hot) { hash, 'failure', 'Failed to apply.', - error.message || error.stack + error.message || error.stack, ); });