summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/assets/services/vendor/squoosh/image-pool.ts4
-rw-r--r--packages/markdown/remark/src/remark-collect-images.ts4
2 files changed, 4 insertions, 4 deletions
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 d1e57b629..ac72fc4ef 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 a9e769429..bb6a6ddb0 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<string, string>();
- for(const path of Array.from(imagePaths)) {
+ for (const path of Array.from(imagePaths)) {
const id = await resolveImage(path);
mapping.set(path, id);
}