(opts?: RegisterOptions)
| 112 | |
| 113 | /** @internal */ |
| 114 | export function registerAndCreateEsmHooks(opts?: RegisterOptions) { |
| 115 | // Automatically performs registration just like `-r ts-node/register` |
| 116 | const tsNodeInstance = register(opts); |
| 117 | |
| 118 | return createEsmHooks(tsNodeInstance); |
| 119 | } |
| 120 | |
| 121 | export function createEsmHooks(tsNodeService: Service) { |
| 122 | tsNodeService.enableExperimentalEsmLoaderInterop(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…