sdfgdsfdsds

This commit is contained in:
Nuckyz 2024-05-30 01:04:44 -03:00
parent 2574d5311d
commit 99160638df
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -702,8 +702,8 @@ export async function extractAndLoadChunks(code: string[], matcher: RegExp = Def
* Extract and load chunks using their entry point. * Extract and load chunks using their entry point.
* *
* @param code An array of all the code the module factory containing the lazy chunk loading must include * @param code An array of all the code the module factory containing the lazy chunk loading must include
* @param matcher A RegExp that returns the chunk ids array as the first capture group and the entry point id as the second. Defaults to a matcher that captures the lazy chunk loading found in the module factory * @param matcher A RegExp that returns the chunk ids array as the first capture group and the entry point id as the second. Defaults to a matcher that captures the first lazy chunk loading found in the module factory
* @returns A function that returns a promise that resolves when the chunks were loaded, on first call * @returns A function that returns a promise that resolves with a boolean whether the chunks were loaded, on first call
*/ */
export function extractAndLoadChunksLazy(code: string[], matcher = DefaultExtractAndLoadChunksRegex) { export function extractAndLoadChunksLazy(code: string[], matcher = DefaultExtractAndLoadChunksRegex) {
if (IS_DEV) webpackSearchHistory.push(["extractAndLoadChunks", [code, matcher]]); if (IS_DEV) webpackSearchHistory.push(["extractAndLoadChunks", [code, matcher]]);