(id: string, code: string)
| 44 | } |
| 45 | |
| 46 | function 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 | |
| 54 | export function injectRuntimeBridge( |
| 55 | code: string, |
no outgoing calls
no test coverage detected