diff --git a/packages/astro/src/content/index.ts b/packages/astro/src/content/index.ts index 69bdb27080..92c8cbdec6 100644 --- a/packages/astro/src/content/index.ts +++ b/packages/astro/src/content/index.ts @@ -1,3 +1,4 @@ +export { CONTENT_FLAG, PROPAGATED_ASSET_FLAG } from './consts.js'; export { errorMap } from './error-map.js'; export { attachContentServerListeners } from './server-listeners.js'; export { createContentTypesGenerator } from './types-generator.js'; @@ -5,4 +6,3 @@ export { contentObservable, getContentPaths, getDotAstroTypeReference } from './ export { astroContentAssetPropagationPlugin } from './vite-plugin-content-assets.js'; export { astroContentImportPlugin } from './vite-plugin-content-imports.js'; export { astroContentVirtualModPlugin } from './vite-plugin-content-virtual-mod.js'; -export { CONTENT_FLAG, PROPAGATED_ASSET_FLAG } from './consts.js'; diff --git a/packages/astro/src/vite-plugin-jsx/index.ts b/packages/astro/src/vite-plugin-jsx/index.ts index e2ea352943..0903a04139 100644 --- a/packages/astro/src/vite-plugin-jsx/index.ts +++ b/packages/astro/src/vite-plugin-jsx/index.ts @@ -12,11 +12,11 @@ import type { PluginMetadata } from '../vite-plugin-astro/types'; import babel from '@babel/core'; import * as colors from 'kleur/colors'; import path from 'path'; +import { CONTENT_FLAG, PROPAGATED_ASSET_FLAG } from '../content/index.js'; import { error } from '../core/logger/core.js'; import { removeQueryString } from '../core/path.js'; import { detectImportSource } from './import-source.js'; import tagExportsPlugin from './tag.js'; -import { CONTENT_FLAG, PROPAGATED_ASSET_FLAG } from '../content/index.js'; const JSX_EXTENSIONS = new Set(['.jsx', '.tsx', '.mdx']); const IMPORT_STATEMENTS: Record = { diff --git a/packages/integrations/mdx/src/index.ts b/packages/integrations/mdx/src/index.ts index a08ab0853a..2ccf662665 100644 --- a/packages/integrations/mdx/src/index.ts +++ b/packages/integrations/mdx/src/index.ts @@ -8,11 +8,11 @@ import { parse as parseESM } from 'es-module-lexer'; import fs from 'node:fs/promises'; import { fileURLToPath } from 'node:url'; import type { Options as RemarkRehypeOptions } from 'remark-rehype'; +import { SourceMapGenerator } from 'source-map'; import { VFile } from 'vfile'; import type { Plugin as VitePlugin } from 'vite'; import { getRehypePlugins, getRemarkPlugins, recmaInjectImportMetaEnvPlugin } from './plugins.js'; import { getFileInfo, ignoreStringPlugins, parseFrontmatter } from './utils.js'; -import { SourceMapGenerator } from 'source-map'; export type MdxOptions = Omit & { extendMarkdownConfig: boolean;