slowModulePlugin() — vite Function Reference
Architecture documentation for the slowModulePlugin() function in vite.config.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 9a3b2974_4c0b_3472_e3fd_c9197163ef47["slowModulePlugin()"] e18e1439_7a35_f406_2a88_052940bc3313["vite.config.ts"] 9a3b2974_4c0b_3472_e3fd_c9197163ef47 -->|defined in| e18e1439_7a35_f406_2a88_052940bc3313 style 9a3b2974_4c0b_3472_e3fd_c9197163ef47 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/module-graph/vite.config.ts lines 8–23
function slowModulePlugin(): Plugin {
return {
name: 'slow-module',
resolveId(id) {
if (id === 'virtual:slow-module') {
return '\0virtual:slow-module'
}
},
async load(id) {
if (id === '\0virtual:slow-module') {
await new Promise((resolve) => setTimeout(resolve, 500))
return `export const msg = '[success]'`
}
},
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does slowModulePlugin() do?
slowModulePlugin() is a function in the vite codebase, defined in playground/module-graph/vite.config.ts.
Where is slowModulePlugin() defined?
slowModulePlugin() is defined in playground/module-graph/vite.config.ts at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free