[ci] format

This commit is contained in:
matthewp 2023-04-06 22:36:23 +00:00 committed by fredkbot
parent a98f6f418c
commit f2112452ad
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ export async function renderPage(
): Promise<Response> {
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<string, any> = { ...(props ?? {}), 'server:root': true };
let output: ComponentIterable;

View file

@ -160,7 +160,7 @@ export default function mdx(partialMdxOptions: Partial<MdxOptions> = {}): AstroI
// Ensures styles and scripts are injected into a `<head>`
// 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