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

Function builtReadOf

ark/aot/unplugin.ts:752–758  ·  view source on GitHub ↗
(context: unknown)

Source from the content-addressed store, hash-verified

750 // its loaders run again to write
751 const builtReads = new WeakMap<object, BuiltRead>()
752 const builtReadOf = (context: unknown) => {
753 const { compilation } =
754 (
755 context as { getNativeBuildContext?: () => NativeBuild }
756 ).getNativeBuildContext?.() ?? {}
757 return compilation && builtReads.get(compilation)
758 }
759 // what a pruned build's modules import is written for its program, as they
760 // are, so the bundler keeps none of it for the next build
761 const leaveUncached = (native: NativeBuild | undefined) => {

Callers 2

issueFeaturesOfFunction · 0.85
handlerFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected