getComponentFromVirtualModuleCssName() — astro Function Reference
Architecture documentation for the getComponentFromVirtualModuleCssName() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 71aa95ff_08aa_f9a0_17a3_0696950e3de7["getComponentFromVirtualModuleCssName()"] 940bf6b8_08dc_39d6_8acd_921dccfcc472["index.ts"] 71aa95ff_08aa_f9a0_17a3_0696950e3de7 -->|defined in| 940bf6b8_08dc_39d6_8acd_921dccfcc472 fa31e14c_740d_1e67_d586_57c6d5b48d97["astroDevCssPlugin()"] fa31e14c_740d_1e67_d586_57c6d5b48d97 -->|calls| 71aa95ff_08aa_f9a0_17a3_0696950e3de7 style 71aa95ff_08aa_f9a0_17a3_0696950e3de7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/vite-plugin-css/index.ts lines 31–35
function getComponentFromVirtualModuleCssName(virtualModulePrefix: string, id: string): string {
return id
.slice(virtualModulePrefix.length)
.replace(new RegExp(ASTRO_CSS_EXTENSION_POST_PATTERN, 'g'), '.');
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getComponentFromVirtualModuleCssName() do?
getComponentFromVirtualModuleCssName() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-css/index.ts.
Where is getComponentFromVirtualModuleCssName() defined?
getComponentFromVirtualModuleCssName() is defined in packages/astro/src/vite-plugin-css/index.ts at line 31.
What calls getComponentFromVirtualModuleCssName()?
getComponentFromVirtualModuleCssName() is called by 1 function(s): astroDevCssPlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free