astroHasOptionsDirective() — astro Function Reference
Architecture documentation for the astroHasOptionsDirective() function in astro.config.mjs from the astro codebase.
Entity Profile
Dependency Diagram
graph TD a9d7f0f2_dcff_3827_3e58_cd05837c4f2d["astroHasOptionsDirective()"] ae5b97ce_7775_0b0f_9084_e7b4e6e63d8f["astro.config.mjs"] a9d7f0f2_dcff_3827_3e58_cd05837c4f2d -->|defined in| ae5b97ce_7775_0b0f_9084_e7b4e6e63d8f style a9d7f0f2_dcff_3827_3e58_cd05837c4f2d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/e2e/fixtures/custom-client-directives/astro.config.mjs lines 37–49
function astroHasOptionsDirective() {
return {
name: 'astro-options',
hooks: {
'astro:config:setup': (opts) => {
opts.addClientDirective({
name: 'options',
entrypoint: fileURLToPath(new URL('./client-options.js', import.meta.url))
});
}
}
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does astroHasOptionsDirective() do?
astroHasOptionsDirective() is a function in the astro codebase, defined in packages/astro/e2e/fixtures/custom-client-directives/astro.config.mjs.
Where is astroHasOptionsDirective() defined?
astroHasOptionsDirective() is defined in packages/astro/e2e/fixtures/custom-client-directives/astro.config.mjs at line 37.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free