refactor(webpack): use global require for checking hmr chunks

This commit is contained in:
Igor Randjelovic
2022-04-13 20:48:57 +02:00
committed by Nathan Walker
parent 49343cb9b4
commit 33ab7d27b7

View File

@@ -93,7 +93,7 @@ if (module.hot) {
const requireExists = (path) => {
try {
__non_webpack_require__(path);
global['require'](path);
return true;
} catch (err) {
return false;
@@ -112,7 +112,7 @@ if (module.hot) {
logVerbose('LiveSync');
if (!hasUpdate()) {
return;
return false;
}
await checkAndApply();