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

Function defer

src/esm.ts:158–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 defaultResolve: typeof resolve
157 ): Promise<{ url: string; format?: NodeLoaderHooksFormat }> {
158 const defer = async () => {
159 const r = await defaultResolve(specifier, context, defaultResolve);
160 return r;
161 };
162 // See: https://github.com/nodejs/node/discussions/41711
163 // nodejs will likely implement a similar fallback. Till then, we can do our users a favor and fallback today.
164 async function entrypointFallback(

Callers 2

getFormatFunction · 0.85
transformSourceFunction · 0.85

Calls 3

defaultTransformSourceFunction · 0.85
defaultResolveFunction · 0.50
defaultGetFormatFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…