MCPcopy
hub / github.com/TypeStrong/ts-node / registerAndCreateEsmHooks

Function registerAndCreateEsmHooks

src/esm.ts:114–119  ·  view source on GitHub ↗
(opts?: RegisterOptions)

Source from the content-addressed store, hash-verified

112
113/** @internal */
114export 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
121export function createEsmHooks(tsNodeService: Service) {
122 tsNodeService.enableExperimentalEsmLoaderInterop();

Callers

nothing calls this directly

Calls 2

registerFunction · 0.90
createEsmHooksFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…