getDevtoolsPlugin() — astro Function Reference
Architecture documentation for the getDevtoolsPlugin() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 7e73859e_c6a6_2a4e_a3c0_9ca14816180e["getDevtoolsPlugin()"] 521ea8e1_a097_01f1_b8ac_61938dc6b706["index.ts"] 7e73859e_c6a6_2a4e_a3c0_9ca14816180e -->|defined in| 521ea8e1_a097_01f1_b8ac_61938dc6b706 style 7e73859e_c6a6_2a4e_a3c0_9ca14816180e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/solid/src/index.ts lines 27–41
async function getDevtoolsPlugin(logger: AstroIntegrationLogger, retrieve: boolean) {
if (!retrieve) {
return null;
}
try {
// @ts-ignore
return (await import('solid-devtools/vite')).default as DevtoolsPlugin;
} catch (_) {
logger.warn(
'Solid Devtools requires `solid-devtools` as a peer dependency, add it to your project.',
);
return null;
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getDevtoolsPlugin() do?
getDevtoolsPlugin() is a function in the astro codebase, defined in packages/integrations/solid/src/index.ts.
Where is getDevtoolsPlugin() defined?
getDevtoolsPlugin() is defined in packages/integrations/solid/src/index.ts at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free