From f2112452ad5b0855555957d7a044900d24dc7ea0 Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 6 Apr 2023 22:36:23 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/runtime/server/render/page.ts | 2 +- packages/integrations/mdx/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/runtime/server/render/page.ts b/packages/astro/src/runtime/server/render/page.ts index c8e07a4e7..ce2d165a7 100644 --- a/packages/astro/src/runtime/server/render/page.ts +++ b/packages/astro/src/runtime/server/render/page.ts @@ -77,7 +77,7 @@ export async function renderPage( ): Promise { if (!isAstroComponentFactory(componentFactory)) { result._metadata.headInTree = - result.componentMetadata.get((componentFactory as any).moduleId)?.containsHead ?? false; + result.componentMetadata.get((componentFactory as any).moduleId)?.containsHead ?? false; const pageProps: Record = { ...(props ?? {}), 'server:root': true }; let output: ComponentIterable; diff --git a/packages/integrations/mdx/src/index.ts b/packages/integrations/mdx/src/index.ts index e284dd4c3..9f46ad30d 100644 --- a/packages/integrations/mdx/src/index.ts +++ b/packages/integrations/mdx/src/index.ts @@ -160,7 +160,7 @@ export default function mdx(partialMdxOptions: Partial = {}): AstroI // Ensures styles and scripts are injected into a `` // When a layout is not applied code += `\nContent[Symbol.for('astro.needsHeadRendering')] = !Boolean(frontmatter.layout);`; - code += `\nContent.moduleId = ${JSON.stringify(id)};` + code += `\nContent.moduleId = ${JSON.stringify(id)};`; if (command === 'dev') { // TODO: decline HMR updates until we have a stable approach