getStringifiedImports() — astro Function Reference
Architecture documentation for the getStringifiedImports() function in content-entry-type.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 8445015d_9459_525c_ff94_499495ecda5a["getStringifiedImports()"] b46411b3_6535_0116_92ac_cd60b744df11["content-entry-type.ts"] 8445015d_9459_525c_ff94_499495ecda5a -->|defined in| b46411b3_6535_0116_92ac_cd60b744df11 8da81c7c_4056_9a1c_b1a1_0ac3cbab6581["getContentEntryType()"] 8da81c7c_4056_9a1c_b1a1_0ac3cbab6581 -->|calls| 8445015d_9459_525c_ff94_499495ecda5a e91e788b_1ac3_31f5_76f8_110b047e5249["toImportName()"] 8445015d_9459_525c_ff94_499495ecda5a -->|calls| e91e788b_1ac3_31f5_76f8_110b047e5249 style 8445015d_9459_525c_ff94_499495ecda5a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/markdoc/src/content-entry-type.ts lines 364–380
function getStringifiedImports(
componentConfigMap: Record<string, ComponentConfig>,
componentNamePrefix: string,
root: URL,
) {
let stringifiedComponentImports = '';
for (const [key, config] of Object.entries(componentConfigMap)) {
const importName = config.namedExport
? `{ ${config.namedExport} as ${componentNamePrefix + toImportName(key)} }`
: componentNamePrefix + toImportName(key);
const resolvedPath =
config.type === 'local' ? fileURLToPath(new URL(config.path, root)) : config.path;
stringifiedComponentImports += `import ${importName} from ${JSON.stringify(resolvedPath)};\n`;
}
return stringifiedComponentImports;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getStringifiedImports() do?
getStringifiedImports() is a function in the astro codebase, defined in packages/integrations/markdoc/src/content-entry-type.ts.
Where is getStringifiedImports() defined?
getStringifiedImports() is defined in packages/integrations/markdoc/src/content-entry-type.ts at line 364.
What does getStringifiedImports() call?
getStringifiedImports() calls 1 function(s): toImportName.
What calls getStringifiedImports()?
getStringifiedImports() is called by 1 function(s): getContentEntryType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free