transformCountPlugin() — vite Function Reference
Architecture documentation for the transformCountPlugin() function in vite.config.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 96f596dc_7d55_b387_2e9d_1faf87b1956e["transformCountPlugin()"] 1881247f_497c_87d7_8eb6_75c8f50658ae["vite.config.ts"] 96f596dc_7d55_b387_2e9d_1faf87b1956e -->|defined in| 1881247f_497c_87d7_8eb6_75c8f50658ae style 96f596dc_7d55_b387_2e9d_1faf87b1956e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/hmr/vite.config.ts lines 94–104
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/vite.config.ts.
Where is transformCountPlugin() defined?
transformCountPlugin() is defined in playground/hmr/vite.config.ts at line 94.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free