diff --git a/packages/astro/src/core/render/dev/vite.ts b/packages/astro/src/core/render/dev/vite.ts index 8d9baafa2..fe4d3f791 100644 --- a/packages/astro/src/core/render/dev/vite.ts +++ b/packages/astro/src/core/render/dev/vite.ts @@ -82,7 +82,7 @@ export async function* crawlGraph( } } } - if(!isPropagationStoppingPoint) { + if (!isPropagationStoppingPoint) { importedModules.add(importedModule); } } diff --git a/packages/integrations/markdoc/src/index.ts b/packages/integrations/markdoc/src/index.ts index 5bcd8dff3..c2d3e8734 100644 --- a/packages/integrations/markdoc/src/index.ts +++ b/packages/integrations/markdoc/src/index.ts @@ -18,9 +18,9 @@ import { emitESMImage } from 'astro/assets'; import { bold, red, yellow } from 'kleur/colors'; import path from 'node:path'; import type * as rollup from 'rollup'; +import { normalizePath } from 'vite'; import { loadMarkdocConfig, type MarkdocConfigResult } from './load-config.js'; import { setupConfig } from './runtime.js'; -import { normalizePath } from 'vite'; type SetupHookParams = HookParameters<'astro:config:setup'> & { // `contentEntryType` is not a public API @@ -56,7 +56,7 @@ export default function markdocIntegration(legacyConfig?: any): AstroIntegration } = params as SetupHookParams; markdocConfigResult = await loadMarkdocConfig(astroConfig); - if(markdocConfigResult) { + if (markdocConfigResult) { markdocConfigResultId = normalizePath(fileURLToPath(markdocConfigResult.fileUrl)); } const userMarkdocConfig = markdocConfigResult?.config ?? {}; @@ -129,7 +129,7 @@ export default function markdocIntegration(legacyConfig?: any): AstroIntegration ${ markdocConfigResult ? `import _userConfig from ${JSON.stringify( - markdocConfigResultId + markdocConfigResultId )};\nconst userConfig = _userConfig ?? {};` : 'const userConfig = {};' }${ diff --git a/packages/integrations/markdoc/src/runtime.ts b/packages/integrations/markdoc/src/runtime.ts index bbbd85739..b0e8f2554 100644 --- a/packages/integrations/markdoc/src/runtime.ts +++ b/packages/integrations/markdoc/src/runtime.ts @@ -1,6 +1,5 @@ import type { MarkdownHeading } from '@astrojs/markdown-remark'; import Markdoc, { type RenderableTreeNode } from '@markdoc/markdoc'; -import type { ContentEntryModule } from 'astro'; import type { AstroMarkdocConfig } from './config.js'; import { setupHeadingConfig } from './heading-ids.js'; diff --git a/packages/integrations/markdoc/src/utils.ts b/packages/integrations/markdoc/src/utils.ts index ad964f56c..1daf8f026 100644 --- a/packages/integrations/markdoc/src/utils.ts +++ b/packages/integrations/markdoc/src/utils.ts @@ -1,6 +1,6 @@ +import matter from 'gray-matter'; import crypto from 'node:crypto'; import path from 'node:path'; -import matter from 'gray-matter'; import type { ErrorPayload as ViteErrorPayload } from 'vite'; /**