getDataEntryModule() — astro Function Reference
Architecture documentation for the getDataEntryModule() function in vite-plugin-content-imports.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 680890c8_1665_e25c_7957_e9303be73454["getDataEntryModule()"] 157f6669_1b64_2b6d_ca39_b0f784c87ad2["vite-plugin-content-imports.ts"] 680890c8_1665_e25c_7957_e9303be73454 -->|defined in| 157f6669_1b64_2b6d_ca39_b0f784c87ad2 06cd4177_9728_08c0_fa43_2385e28cbaf4["astroContentImportPlugin()"] 06cd4177_9728_08c0_fa43_2385e28cbaf4 -->|calls| 680890c8_1665_e25c_7957_e9303be73454 d4749634_d021_a687_4265_4885c1ed7b3f["getEntryModuleBaseInfo()"] 680890c8_1665_e25c_7957_e9303be73454 -->|calls| d4749634_d021_a687_4265_4885c1ed7b3f style 680890c8_1665_e25c_7957_e9303be73454 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/vite-plugin-content-imports.ts lines 291–322
async function getDataEntryModule(
params: GetEntryModuleParams<DataEntryType>,
): Promise<DataEntryModule> {
const { fileId, contentDir, pluginContext } = params;
const { collectionConfig, entryConfig, entry, rawContents, collection } =
await getEntryModuleBaseInfo(params);
const { rawData = '', data: unvalidatedData } = await entryConfig.getEntryInfo({
fileUrl: pathToFileURL(fileId),
contents: rawContents,
});
const _internal = { filePath: fileId, rawData };
const id = getDataEntryId({ entry, contentDir, collection });
const data = collectionConfig
? await getEntryData(
{ id, collection, _internal, unvalidatedData },
collectionConfig,
params.shouldEmitFile,
pluginContext,
)
: unvalidatedData;
const dataEntryModule: DataEntryModule = {
id,
collection,
data,
_internal,
};
return dataEntryModule;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getDataEntryModule() do?
getDataEntryModule() is a function in the astro codebase, defined in packages/astro/src/content/vite-plugin-content-imports.ts.
Where is getDataEntryModule() defined?
getDataEntryModule() is defined in packages/astro/src/content/vite-plugin-content-imports.ts at line 291.
What does getDataEntryModule() call?
getDataEntryModule() calls 1 function(s): getEntryModuleBaseInfo.
What calls getDataEntryModule()?
getDataEntryModule() is called by 1 function(s): astroContentImportPlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free