Skip to content

Commit

Permalink
attempt to make it faster
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckyz committed Jan 29, 2025
1 parent eb5a3b5 commit 7a85742
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/debug/loadLazyChunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export async function loadLazyChunks() {
// True if resolved, false otherwise
const chunksSearchPromises = [] as Array<() => boolean>;

/* This regex loads all language packs which makes webpack finds testing extremely slow, so for now, lets use one which doesnt include those
const LazyChunkRegex = canonicalizeMatch(/(?:(?:Promise\.all\(\[)?(\i\.e\("?[^)]+?"?\)[^\]]*?)(?:\]\))?)\.then\(\i(?:\.\i)?\.bind\(\i,"?([^)]+?)"?(?:,[^)]+?)?\)\)/g);
*/
const LazyChunkRegex = canonicalizeMatch(/(?:(?:Promise\.all\(\[)?(\i\.e\("?[^)]+?"?\)[^\]]*?)(?:\]\))?)\.then\(\i\.bind\(\i,"?([^)]+?)"?\)\)/g);

let foundCssDebuggingLoad = false;

Expand Down

0 comments on commit 7a85742

Please sign in to comment.