diff --git a/packages/astro/src/core/errors/dev/vite.ts b/packages/astro/src/core/errors/dev/vite.ts index 8705534a96..40551a185e 100644 --- a/packages/astro/src/core/errors/dev/vite.ts +++ b/packages/astro/src/core/errors/dev/vite.ts @@ -3,12 +3,12 @@ import { fileURLToPath } from 'node:url'; import { codeToHtml } from 'shikiji'; import type { ErrorPayload } from 'vite'; import type { ModuleLoader } from '../../module-loader/index.js'; +import { replaceCssVariables } from '../../shiki.js'; import { FailedToLoadModuleSSR, InvalidGlob, MdxIntegrationMissingError } from '../errors-data.js'; import { AstroError, type ErrorWithMetadata } from '../errors.js'; import { createSafeError } from '../utils.js'; import type { SSRLoadedRenderer } from './../../../@types/astro.js'; import { getDocsForError, renderErrorMarkdown } from './utils.js'; -import { replaceCssVariables } from '../../shiki.js'; export function enhanceViteSSRError({ error, diff --git a/packages/astro/src/core/shiki.ts b/packages/astro/src/core/shiki.ts index 4ce27c51d4..3bfa0379d9 100644 --- a/packages/astro/src/core/shiki.ts +++ b/packages/astro/src/core/shiki.ts @@ -1,4 +1,4 @@ -import { type Highlighter, getHighlighter } from 'shikiji'; +import { getHighlighter, type Highlighter } from 'shikiji'; type HighlighterOptions = NonNullable[0]>;