[ci] format

This commit is contained in:
matthewp 2022-10-10 15:09:00 +00:00 committed by fredkbot
parent c5484add6a
commit 19a76882c4

View file

@ -30,8 +30,8 @@ export function rollupPluginAstroBuildCSS(options: PluginOptions): VitePlugin[]
function createNameForParentPages(id: string, ctx: { getModuleInfo: GetModuleInfo }): string {
const parents = Array.from(getTopLevelPages(id, ctx));
const firstParentId = parents[0]?.[0].id
const firstParentName = firstParentId ? npath.parse(firstParentId).name : 'index'
const firstParentId = parents[0]?.[0].id;
const firstParentName = firstParentId ? npath.parse(firstParentId).name : 'index';
const hash = crypto.createHash('sha256');
for (const [page] of parents) {