mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 06:30:35 +00:00
chore: improve generateFluxActionType
This commit is contained in:
parent
6c8eeed9b1
commit
5a4f4fa289
3 changed files with 25 additions and 9 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -20,7 +20,7 @@ export async function loadLazyChunks() {
|
|||
const deferredRequires = new Set<string>();
|
||||
|
||||
let chunksSearchingResolve: (value: void | PromiseLike<void>) => void;
|
||||
const chunksSearchingDone = new Promise<void>(r => chunksSearchingResolve = r);
|
||||
const chunksSearchingDone = new Promise<void>(r => { chunksSearchingResolve = r; });
|
||||
|
||||
// True if resolved, false otherwise
|
||||
const chunksSearchPromises: (() => boolean)[] = [];
|
||||
|
@ -38,9 +38,7 @@ export async function loadLazyChunks() {
|
|||
await Promise.all(Array.from(lazyChunks).map(async ([, rawChunkIds, entryPoint]) => {
|
||||
const chunkIds = rawChunkIds ? Array.from(rawChunkIds.matchAll(Webpack.ChunkIdsRegex)).map(m => m[1]!) : [];
|
||||
|
||||
if (chunkIds.length === 0) {
|
||||
return;
|
||||
}
|
||||
if (chunkIds.length === 0) return;
|
||||
|
||||
let invalidChunkGroup = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue