MCPcopy Create free account
hub / github.com/arktypeio/arktype / readDependency

Function readDependency

ark/aot/unplugin.ts:281–288  ·  view source on GitHub ↗
(
		importer: string
	)

Source from the content-addressed store, hash-verified

279 // resolving arktype for a module outside node_modules doesn't wait on the
280 // worker, which may wait on the bundler
281 const readDependency = async (
282 importer: string
283 ): Promise<RenderedDiagnostics> => {
284 const file = fileOf(importer)
285 return dependencyOf(file) ?
286 (request("readDependency", file) as Promise<RenderedDiagnostics>)
287 : noDiagnostics()
288 }
289 let productionHost = createNodeHost(opts)
290 let developmentHost: PrecompileHost | undefined
291 // resolves as the bundler's mode would, e.g. arktype/runtime in development

Callers 2

resolveEsbuildRuntimeFunction · 0.85
handlerFunction · 0.85

Calls 4

fileOfFunction · 0.90
dependencyOfFunction · 0.90
noDiagnosticsFunction · 0.85
requestFunction · 0.70

Tested by

no test coverage detected