transformCountPlugin() — vite Function Reference
Architecture documentation for the transformCountPlugin() function in vite.config.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 46b14178_9d2c_31b9_0a82_e6a055cb2273["transformCountPlugin()"] c816e784_0e00_b166_e645_64c52c7c4d00["vite.config.ts"] 46b14178_9d2c_31b9_0a82_e6a055cb2273 -->|defined in| c816e784_0e00_b166_e645_64c52c7c4d00 style 46b14178_9d2c_31b9_0a82_e6a055cb2273 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/hmr-ssr/vite.config.ts lines 87–97
function transformCountPlugin(): Plugin {
let num = 0
return {
name: 'transform-count',
transform(code) {
if (code.includes('__TRANSFORM_COUNT__')) {
return code.replace('__TRANSFORM_COUNT__', String(++num))
}
},
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does transformCountPlugin() do?
transformCountPlugin() is a function in the vite codebase, defined in playground/hmr-ssr/vite.config.ts.
Where is transformCountPlugin() defined?
transformCountPlugin() is defined in playground/hmr-ssr/vite.config.ts at line 87.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free