diff --git a/packages/astro/src/assets/services/vendor/squoosh/image-pool.ts b/packages/astro/src/assets/services/vendor/squoosh/image-pool.ts index d1e57b629960..ac72fc4ef4b4 100644 --- a/packages/astro/src/assets/services/vendor/squoosh/image-pool.ts +++ b/packages/astro/src/assets/services/vendor/squoosh/image-pool.ts @@ -2,11 +2,11 @@ import { isMainThread } from 'node:worker_threads'; import { cpus } from 'os'; import { fileURLToPath } from 'url'; import type { OutputFormat } from '../../../types.js'; -import execOnce from './utils/execOnce.js'; -import WorkerPool from './utils/workerPool.js'; import { getModuleURL } from './emscripten-utils.js'; import type { Operation } from './image.js'; import * as impl from './impl.js'; +import execOnce from './utils/execOnce.js'; +import WorkerPool from './utils/workerPool.js'; const getWorker = execOnce(() => { return new WorkerPool( diff --git a/packages/markdown/remark/src/remark-collect-images.ts b/packages/markdown/remark/src/remark-collect-images.ts index a9e769429e3b..bb6a6ddb025d 100644 --- a/packages/markdown/remark/src/remark-collect-images.ts +++ b/packages/markdown/remark/src/remark-collect-images.ts @@ -16,9 +16,9 @@ export default function toRemarkCollectImages(resolveImage: OptionalResolveImage if (imagePaths.size === 0) { vfile.data.imagePaths = []; return; - } else if(resolveImage) { + } else if (resolveImage) { const mapping = new Map(); - for(const path of Array.from(imagePaths)) { + for (const path of Array.from(imagePaths)) { const id = await resolveImage(path); mapping.set(path, id); }