diff --git a/src/webpack/api.tsx b/src/webpack/api.tsx index 06e0a979f..e3d6223e0 100644 --- a/src/webpack/api.tsx +++ b/src/webpack/api.tsx @@ -531,7 +531,7 @@ export function extractAndLoadChunksLazy(code: string | string[], matcher: RegEx } if (rawChunkIds) { - const chunkIds = Array.from(rawChunkIds.matchAll(ChunkIdsRegex)).map((m: any) => m[1]); + const chunkIds = Array.from(rawChunkIds.matchAll(ChunkIdsRegex)).map(m => m[1]); await Promise.all(chunkIds.map(id => wreq.e(id))); } @@ -546,7 +546,7 @@ export function extractAndLoadChunksLazy(code: string | string[], matcher: RegEx } } - wreq(entryPointId as any); + wreq(entryPointId); return true; });