loadAndBundleDbConfigFile() — astro Function Reference
Architecture documentation for the loadAndBundleDbConfigFile() function in load-file.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD cf2330cc_70ee_42ca_188d_0ed1a14ede84["loadAndBundleDbConfigFile()"] 35a7c59e_72d3_6031_3ceb_786d40082cf6["load-file.ts"] cf2330cc_70ee_42ca_188d_0ed1a14ede84 -->|defined in| 35a7c59e_72d3_6031_3ceb_786d40082cf6 a9efc684_4b5e_dafe_614f_0d24cd534d83["loadUserConfigFile()"] a9efc684_4b5e_dafe_614f_0d24cd534d83 -->|calls| cf2330cc_70ee_42ca_188d_0ed1a14ede84 5e01166f_35d5_ec75_4108_20f851d291f2["loadIntegrationConfigFile()"] 5e01166f_35d5_ec75_4108_20f851d291f2 -->|calls| cf2330cc_70ee_42ca_188d_0ed1a14ede84 dec45190_931d_285d_dda0_9ce65f0c2a5c["bundleFile()"] cf2330cc_70ee_42ca_188d_0ed1a14ede84 -->|calls| dec45190_931d_285d_dda0_9ce65f0c2a5c ef4ec73e_8878_4aa1_53b0_02a9e75b9c17["importBundledFile()"] cf2330cc_70ee_42ca_188d_0ed1a14ede84 -->|calls| ef4ec73e_8878_4aa1_53b0_02a9e75b9c17 style cf2330cc_70ee_42ca_188d_0ed1a14ede84 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/db/src/core/load-file.ts lines 98–117
async function loadAndBundleDbConfigFile({
root,
fileUrl,
}: {
root: URL;
fileUrl: URL | undefined;
}): Promise<{ mod: { default?: unknown } | undefined; dependencies: string[] }> {
if (!fileUrl) {
return { mod: undefined, dependencies: [] };
}
const { code, dependencies } = await bundleFile({
virtualModContents: getConfigVirtualModContents(),
root,
fileUrl,
});
return {
mod: await importBundledFile({ code, root }),
dependencies,
};
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does loadAndBundleDbConfigFile() do?
loadAndBundleDbConfigFile() is a function in the astro codebase, defined in packages/db/src/core/load-file.ts.
Where is loadAndBundleDbConfigFile() defined?
loadAndBundleDbConfigFile() is defined in packages/db/src/core/load-file.ts at line 98.
What does loadAndBundleDbConfigFile() call?
loadAndBundleDbConfigFile() calls 2 function(s): bundleFile, importBundledFile.
What calls loadAndBundleDbConfigFile()?
loadAndBundleDbConfigFile() is called by 2 function(s): loadIntegrationConfigFile, loadUserConfigFile.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free