getMdxMeta() — astro Function Reference
Architecture documentation for the getMdxMeta() function in vite-plugin-mdx.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1b9c6d96_7211_7bc5_3e8c_572614b93fd9["getMdxMeta()"] 5053c6d5_f109_9970_dbe2_50bf2be7a473["vite-plugin-mdx.ts"] 1b9c6d96_7211_7bc5_3e8c_572614b93fd9 -->|defined in| 5053c6d5_f109_9970_dbe2_50bf2be7a473 a37cee14_d6b8_5977_d857_ebfeda4309f8["vitePluginMdx()"] a37cee14_d6b8_5977_d857_ebfeda4309f8 -->|calls| 1b9c6d96_7211_7bc5_3e8c_572614b93fd9 style 1b9c6d96_7211_7bc5_3e8c_572614b93fd9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/mdx/src/vite-plugin-mdx.ts lines 102–117
function getMdxMeta(vfile: VFile): Record<string, any> {
const astroMetadata = getAstroMetadata(vfile);
if (!astroMetadata) {
throw new Error(
'Internal MDX error: Astro metadata is not set by rehype-analyze-astro-metadata',
);
}
return {
astro: astroMetadata,
vite: {
// Setting this vite metadata to `ts` causes Vite to resolve .js
// extensions to .ts files.
lang: 'ts',
},
};
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getMdxMeta() do?
getMdxMeta() is a function in the astro codebase, defined in packages/integrations/mdx/src/vite-plugin-mdx.ts.
Where is getMdxMeta() defined?
getMdxMeta() is defined in packages/integrations/mdx/src/vite-plugin-mdx.ts at line 102.
What calls getMdxMeta()?
getMdxMeta() is called by 1 function(s): vitePluginMdx.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free