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

Function precompiledProblemOf

ark/aot/unplugin.ts:713–719  ·  view source on GitHub ↗
(id: string, importer: string)

Source from the content-addressed store, hash-verified

711 // a package this plugin precompiles imports the runtime as it transforms
712 // it, inline
713 const precompiledProblemOf = (id: string, importer: string) => {
714 if (isTransformedId(fileOf(importer))) return
715 const name = precompiledDependencyOf(id, importer)
716 if (!name || reportedPrecompiled.has(name)) return
717 reportedPrecompiled.add(name)
718 return writePrecompiledDependencyMessage(name)
719 }
720 const reportedUntransformed = new Set<string>()
721 // files esbuild loaded through this plugin, rather than another ahead of it
722 const loadedFiles = new Set<string>()

Callers 2

resolveEsbuildRuntimeFunction · 0.85
handlerFunction · 0.85

Calls 5

fileOfFunction · 0.90
precompiledDependencyOfFunction · 0.90
isTransformedIdFunction · 0.85
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected