delayTransformComment() — vite Function Reference
Architecture documentation for the delayTransformComment() function in vite.config.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 815c0b6a_503a_e79f_5622_29b251870f87["delayTransformComment()"] 9c394fd4_d931_13e7_dc9e_b86ce6865992["vite.config.ts"] 815c0b6a_503a_e79f_5622_29b251870f87 -->|defined in| 9c394fd4_d931_13e7_dc9e_b86ce6865992 style 815c0b6a_503a_e79f_5622_29b251870f87 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/hmr-full-bundle-mode/vite.config.ts lines 35–44
function delayTransformComment(): Plugin {
return {
name: 'delay-transform-comment',
async transform(code) {
if (code.includes('// @delay-transform')) {
await new Promise<void>((resolve) => setTimeout(resolve, 300))
}
},
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does delayTransformComment() do?
delayTransformComment() is a function in the vite codebase, defined in playground/hmr-full-bundle-mode/vite.config.ts.
Where is delayTransformComment() defined?
delayTransformComment() is defined in playground/hmr-full-bundle-mode/vite.config.ts at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free