[ci] format
This commit is contained in:
parent
a98f6f418c
commit
f2112452ad
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ export async function renderPage(
|
||||||
): Promise<Response> {
|
): Promise<Response> {
|
||||||
if (!isAstroComponentFactory(componentFactory)) {
|
if (!isAstroComponentFactory(componentFactory)) {
|
||||||
result._metadata.headInTree =
|
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 };
|
const pageProps: Record<string, any> = { ...(props ?? {}), 'server:root': true };
|
||||||
|
|
||||||
let output: ComponentIterable;
|
let output: ComponentIterable;
|
||||||
|
|
|
@ -160,7 +160,7 @@ export default function mdx(partialMdxOptions: Partial<MdxOptions> = {}): AstroI
|
||||||
// Ensures styles and scripts are injected into a `<head>`
|
// Ensures styles and scripts are injected into a `<head>`
|
||||||
// When a layout is not applied
|
// When a layout is not applied
|
||||||
code += `\nContent[Symbol.for('astro.needsHeadRendering')] = !Boolean(frontmatter.layout);`;
|
code += `\nContent[Symbol.for('astro.needsHeadRendering')] = !Boolean(frontmatter.layout);`;
|
||||||
code += `\nContent.moduleId = ${JSON.stringify(id)};`
|
code += `\nContent.moduleId = ${JSON.stringify(id)};`;
|
||||||
|
|
||||||
if (command === 'dev') {
|
if (command === 'dev') {
|
||||||
// TODO: decline HMR updates until we have a stable approach
|
// TODO: decline HMR updates until we have a stable approach
|
||||||
|
|
Loading…
Add table
Reference in a new issue