diff --git a/packages/astro/src/content/consts.ts b/packages/astro/src/content/consts.ts index d74e60abd..9bfb2e865 100644 --- a/packages/astro/src/content/consts.ts +++ b/packages/astro/src/content/consts.ts @@ -8,6 +8,11 @@ export const LINKS_PLACEHOLDER = '@@ASTRO-LINKS@@'; export const STYLES_PLACEHOLDER = '@@ASTRO-STYLES@@'; export const SCRIPTS_PLACEHOLDER = '@@ASTRO-SCRIPTS@@'; -export const CONTENT_FLAGS = [CONTENT_FLAG, CONTENT_RENDER_FLAG, DATA_FLAG, PROPAGATED_ASSET_FLAG] as const; +export const CONTENT_FLAGS = [ + CONTENT_FLAG, + CONTENT_RENDER_FLAG, + DATA_FLAG, + PROPAGATED_ASSET_FLAG, +] as const; export const CONTENT_TYPES_FILE = 'types.d.ts'; diff --git a/packages/astro/src/core/render/dev/vite.ts b/packages/astro/src/core/render/dev/vite.ts index b9a88e2ac..bb8209ce8 100644 --- a/packages/astro/src/core/render/dev/vite.ts +++ b/packages/astro/src/core/render/dev/vite.ts @@ -60,7 +60,9 @@ export async function* crawlGraph( if (entryIsStyle && !isCSSRequest(importedModulePathname)) { continue; } - const isFileTypeNeedingSSR = fileExtensionsToSSR.has(npath.extname(importedModulePathname)); + const isFileTypeNeedingSSR = fileExtensionsToSSR.has( + npath.extname(importedModulePathname) + ); if ( isFileTypeNeedingSSR && // Should not SSR a module with ?astroPropagatedAssets diff --git a/packages/integrations/markdoc/components/TreeNode.ts b/packages/integrations/markdoc/components/TreeNode.ts index 3f9740af1..e491d1dc9 100644 --- a/packages/integrations/markdoc/components/TreeNode.ts +++ b/packages/integrations/markdoc/components/TreeNode.ts @@ -48,10 +48,14 @@ export const ComponentNode = createComponent({ links = '', scripts = ''; if (Array.isArray(treeNode.collectedStyles)) { - styles = treeNode.collectedStyles.map((style: any) => renderUniqueStylesheet({ - type: 'inline', - content: style, - })).join(''); + styles = treeNode.collectedStyles + .map((style: any) => + renderUniqueStylesheet({ + type: 'inline', + content: style, + }) + ) + .join(''); } if (Array.isArray(treeNode.collectedLinks)) { links = treeNode.collectedLinks