metadata.ts — astro Source File
Architecture documentation for metadata.ts, a typescript file in the astro codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 9bd66af1_38f9_ca7b_e553_11853bdf8437["metadata.ts"] 32f8c7d4_d66e_e0cf_b019_46ec3f2fea31["../core/module-loader/index.js"] 9bd66af1_38f9_ca7b_e553_11853bdf8437 --> 32f8c7d4_d66e_e0cf_b019_46ec3f2fea31 578ea01d_496b_3b43_98f2_7b2f0ce78d7e["../vite-plugin-astro/types.js"] 9bd66af1_38f9_ca7b_e553_11853bdf8437 --> 578ea01d_496b_3b43_98f2_7b2f0ce78d7e style 9bd66af1_38f9_ca7b_e553_11853bdf8437 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { ModuleInfo } from '../core/module-loader/index.js';
import type { PluginMetadata } from './types.js';
export function getAstroMetadata(modInfo: ModuleInfo): PluginMetadata['astro'] | undefined {
if (modInfo.meta?.astro) {
return modInfo.meta.astro as PluginMetadata['astro'];
}
return undefined;
}
export function createDefaultAstroMetadata(): PluginMetadata['astro'] {
return {
hydratedComponents: [],
clientOnlyComponents: [],
serverComponents: [],
scripts: [],
propagation: 'none',
containsHead: false,
pageOptions: {},
};
}
Domain
Subdomains
Dependencies
- ../core/module-loader/index.js
- ../vite-plugin-astro/types.js
Source
Frequently Asked Questions
What does metadata.ts do?
metadata.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in metadata.ts?
metadata.ts defines 2 function(s): createDefaultAstroMetadata, getAstroMetadata.
What does metadata.ts depend on?
metadata.ts imports 2 module(s): ../core/module-loader/index.js, ../vite-plugin-astro/types.js.
Where is metadata.ts in the architecture?
metadata.ts is located at packages/astro/src/vite-plugin-astro/metadata.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/vite-plugin-astro).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free