MCPcopy Create free account
hub / github.com/TanStack/devtools / isEventClientModule

Function isEventClientModule

packages/devtools-vite/src/runtime-bridge.ts:46–52  ·  view source on GitHub ↗
(id: string, code: string)

Source from the content-addressed store, hash-verified

44}
45
46function isEventClientModule(id: string, code: string): boolean {
47 const isEventClientPath =
48 id.includes('devtools-event-client') || id.includes('event-bus-client')
49 // Only the module that actually defines the class — avoids re-export shims
50 // and unrelated files inside the package.
51 return isEventClientPath && code.includes('EventClient')
52}
53
54export function injectRuntimeBridge(
55 code: string,

Callers 1

injectRuntimeBridgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected