LazyChunkLoader: Fix incorrectly logging unavoidable errors

This commit is contained in:
Nuckyz 2026-07-31 14:38:05 -03:00
parent c84389de5a
commit 8fbcdf5604
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -132,6 +132,10 @@ export async function loadLazyChunks() {
if (wreq.m[entryPoint]) wreq(entryPoint);
} catch (err) {
if (err instanceof TypeError && err.message.includes("reading 'nativeModules'")) {
continue;
}
console.error(err);
}
}