summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-10-10 15:09:00 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-10-10 15:09:00 +0000
commit19a76882c46f5a6a1c671c84f4156ba8cb5a5244 (patch)
tree0269641ae9b53538f4e1caa9af3033641c0242d8
parentc5484add6a450e29ab9a23b2ddc8d635a695770a (diff)
downloadastro-19a76882c46f5a6a1c671c84f4156ba8cb5a5244.tar.gz
astro-19a76882c46f5a6a1c671c84f4156ba8cb5a5244.tar.zst
astro-19a76882c46f5a6a1c671c84f4156ba8cb5a5244.zip
[ci] format
-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) {