Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitejs/vite
/ transform
Function
transform
playground/hmr/vite.config.ts:98–102 ·
view source on GitHub ↗
(code)
Source
from the content-addressed store, hash-verified
96
return
{
97
name:
'transform-count'
,
98
transform(code) {
99
if
(code.includes(
'__TRANSFORM_COUNT__'
)) {
100
return
code.replace(
'__TRANSFORM_COUNT__'
, String(++num))
101
}
102
},
103
}
104
}
105
Callers
1
createMiddleware
Function · 0.50
Calls
2
resolve
Method · 0.65
addWatchFile
Method · 0.45
Tested by
no test coverage detected