fix(webpack): don't break if a module fails to load

doesn't matter now but could in the future so might as well fix it now
This commit is contained in:
AAGaming
2023-11-09 14:44:41 -05:00
parent 3f47b5ccce
commit 5203ce348a

View File

@@ -37,7 +37,11 @@ if (window.webpackJsonp && !window.webpackJsonp.deckyShimmed) {
},
]);
for (let i of Object.keys(initReq.m)) {
webpackCache[i] = initReq(i);
try {
webpackCache[i] = initReq(i);
} catch (e) {
console.debug("[DFL:Webpack]: Ignoring require error for module", i, e);
}
}
}