MCPcopy
hub / github.com/vitejs/vite / getHookHandler

Function getHookHandler

packages/vite/src/node/plugins/index.ts:232–236  ·  view source on GitHub ↗
(
  hook: T,
)

Source from the content-addressed store, hash-verified

230}
231
232export function getHookHandler<T extends ObjectHook<Function>>(
233 hook: T,
234): HookHandler<T> {
235 return (typeof hook === 'object' ? hook.handler : hook) as HookHandler<T>
236}
237
238type FilterForPluginValue = {
239 resolveId?: PluginFilter | undefined

Callers 13

runConfigHookFunction · 0.90
runConfigEnvironmentHookFunction · 0.90
wrapEnvironmentResolveIdFunction · 0.90
wrapEnvironmentLoadFunction · 0.90
wrapEnvironmentTransformFunction · 0.90
wrapEnvironmentHookFunction · 0.90
buildAppFunction · 0.90
hookParallelMethod · 0.90
resolveIdMethod · 0.90
loadMethod · 0.90
transformMethod · 0.90
handleHMRUpdateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected