vitePluginAstroServerClient() — astro Function Reference
Architecture documentation for the vitePluginAstroServerClient() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD ac446553_400a_44c4_f911_a7ee4baf0891["vitePluginAstroServerClient()"] b9070660_fa9b_4e94_6ef5_8fc70d039609["index.ts"] ac446553_400a_44c4_f911_a7ee4baf0891 -->|defined in| b9070660_fa9b_4e94_6ef5_8fc70d039609 style ac446553_400a_44c4_f911_a7ee4baf0891 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/vite-plugin-overlay/index.ts lines 5–21
export function vitePluginAstroServerClient(): Plugin {
return {
name: 'astro:server-client',
applyToEnvironment(environment) {
return environment.name === ASTRO_VITE_ENVIRONMENT_NAMES.client;
},
transform: {
filter: {
id: /vite\/dist\/client\/client\.mjs/,
},
handler(code) {
// Replace the Vite overlay with ours
return patchOverlay(code);
},
},
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does vitePluginAstroServerClient() do?
vitePluginAstroServerClient() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-overlay/index.ts.
Where is vitePluginAstroServerClient() defined?
vitePluginAstroServerClient() is defined in packages/astro/src/vite-plugin-overlay/index.ts at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free