0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

fix: i dont want to set src like this

This commit is contained in:
Josh Chappelow 2024-08-18 22:34:36 +09:00
parent 2e8af7f8eb
commit 245034babb

View file

@ -341,6 +341,8 @@ async function emitOptimizedImages(
globalThis.astroAsset.referencedImages.add(fsPath);
}
node.attributes[attributeName] = { ...src, fsPath };
node.attributes.src = src.src;
}
} else {
throw new MarkdocError({