Skip to content

Commit

Permalink
fix(webpack): don't break if a module fails to load
Browse files Browse the repository at this point in the history
doesn't matter now but could in the future so might as well fix it now
  • Loading branch information
AAGaming00 committed Nov 9, 2023
1 parent 3f47b5c commit 5203ce3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/webpack.ts
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 5203ce3

Please sign in to comment.