summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/core/build/vite-plugin-css.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/core/build/vite-plugin-css.ts b/packages/astro/src/core/build/vite-plugin-css.ts
index 5b413dc13..1f4eba731 100644
--- a/packages/astro/src/core/build/vite-plugin-css.ts
+++ b/packages/astro/src/core/build/vite-plugin-css.ts
@@ -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) {