getScriptResources() — astro Function Reference
Architecture documentation for the getScriptResources() function in common.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD aa85d566_76b5_ba59_4818_cb422222f12e["getScriptResources()"] 0f62fcfb_9504_86a2_16bb_d8a9742e1f23["common.ts"] aa85d566_76b5_ba59_4818_cb422222f12e -->|defined in| 0f62fcfb_9504_86a2_16bb_d8a9742e1f23 style aa85d566_76b5_ba59_4818_cb422222f12e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/csp/common.ts lines 33–38
export function getScriptResources(csp: EnabledCsp): string[] {
if (csp === true) {
return [];
}
return csp.scriptDirective?.resources ?? [];
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getScriptResources() do?
getScriptResources() is a function in the astro codebase, defined in packages/astro/src/core/csp/common.ts.
Where is getScriptResources() defined?
getScriptResources() is defined in packages/astro/src/core/csp/common.ts at line 33.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free