From 7bc7e6cda3fade4408a1886b335a22dc4ecf9cd4 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Mon, 9 Dec 2024 16:01:48 +0000 Subject: [PATCH] Update packages/astro/src/assets/utils/node/emitAsset.ts Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> --- packages/astro/src/assets/utils/node/emitAsset.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/assets/utils/node/emitAsset.ts b/packages/astro/src/assets/utils/node/emitAsset.ts index 8f56d7db0a5a..1337ac8800b8 100644 --- a/packages/astro/src/assets/utils/node/emitAsset.ts +++ b/packages/astro/src/assets/utils/node/emitAsset.ts @@ -45,7 +45,7 @@ export async function emitESMImage( }); // Attach file data for SVGs - // TODO: this is a workaround to prevent the a memory leak, and it must be fixed before we remove the experimental flag + // TODO: this is a workaround to prevent a memory leak, and it must be fixed before we remove the experimental flag, see if (fileMetadata.format === 'svg' && experimentalSvgEnabled === true) { emittedImage.contents = fileData; }