determinesIfNeedsDirectiveScript() — astro Function Reference
Architecture documentation for the determinesIfNeedsDirectiveScript() function in scripts.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1d24aaab_ab6f_24eb_889c_a214db977232["determinesIfNeedsDirectiveScript()"] 7d939579_ff24_6e88_6d95_2d48a8dbe011["scripts.ts"] 1d24aaab_ab6f_24eb_889c_a214db977232 -->|defined in| 7d939579_ff24_6e88_6d95_2d48a8dbe011 style 1d24aaab_ab6f_24eb_889c_a214db977232 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/scripts.ts lines 13–19
export function determinesIfNeedsDirectiveScript(result: SSRResult, directive: string): boolean {
if (result._metadata.hasDirectives.has(directive)) {
return false;
}
result._metadata.hasDirectives.add(directive);
return true;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does determinesIfNeedsDirectiveScript() do?
determinesIfNeedsDirectiveScript() is a function in the astro codebase, defined in packages/astro/src/runtime/server/scripts.ts.
Where is determinesIfNeedsDirectiveScript() defined?
determinesIfNeedsDirectiveScript() is defined in packages/astro/src/runtime/server/scripts.ts at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free