From b0730141367685474ba80ea5cd5cb3679857739b Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Wed, 4 Dec 2024 12:35:28 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/assets/utils/resolveImports.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/assets/utils/resolveImports.ts b/packages/astro/src/assets/utils/resolveImports.ts index c3608084e7..93e312487e 100644 --- a/packages/astro/src/assets/utils/resolveImports.ts +++ b/packages/astro/src/assets/utils/resolveImports.ts @@ -20,7 +20,9 @@ export function imageSrcToImportId(imageSrc: string, filePath?: string): string return; } // We only care about images - const ext = imageSrc.split('.').at(-1)?.toLowerCase() as (typeof VALID_INPUT_FORMATS)[number] | undefined; + const ext = imageSrc.split('.').at(-1)?.toLowerCase() as + | (typeof VALID_INPUT_FORMATS)[number] + | undefined; if (!ext || !VALID_INPUT_FORMATS.includes(ext)) { return; }