0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] yarn format

This commit is contained in:
natemoo-re 2021-07-07 21:32:45 +00:00 committed by GitHub Actions
parent ff89a6a7a6
commit 8e01a3c463

View file

@ -164,7 +164,7 @@ export async function main() {
return indent + importStatements.join('\n');
})
.replace(/^(\s*)<!-- ASTRO:COMPONENT_MARKUP -->/gm, (_, indent) => {
return components.map(ln => indent + ln).join('\n');
return components.map((ln) => indent + ln).join('\n');
});
await fs.promises.writeFile(pageFileLoc, newContent);
}