fix(plugin-md-power): fix timeout issue when retrieving image size

This commit is contained in:
pengzhanbo 2026-02-15 12:32:33 +08:00
parent 7234eebe7e
commit f2fe79f923

View File

@ -233,11 +233,11 @@ async function getAllImageOriginalSize(
): Promise<Record<string, ImgSize>> {
const result: Record<string, ImgSize> = {}
await pMap(images, async (src) => {
for (const src of images) {
const size = await getImageOriginalSize(src, includeRemote)
if (size)
result[src] = size
}, { concurrency: 64 })
}
return result
}