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

Function loadIssueFeatures

ark/aot/unplugin.ts:648–657  ·  view source on GitHub ↗
(context: unknown, id: string)

Source from the content-addressed store, hash-verified

646 // the constants' module, or a runtime module with each read of one written
647 // as what it is, so the bundle needs no minifier to fold them
648 const loadIssueFeatures = async (context: unknown, id: string) => {
649 const issues = await issueFeaturesOf(context)
650 if (!issues) return
651 if (issueFeaturesFile.test(id)) return writeIssueFeatures(issues)
652 const file = id.split("?")[0]
653 const code = readFile(file)
654 return code === undefined ? undefined : (
655 writeIssueFeaturesInto(file, code, issues)
656 )
657 }
658 // Vite's transforming plugins ahead of this one, which a new config module names
659 let transformersAhead: string[] = []
660 // each plugin whose transform runs after this one's, which a read one adds names

Callers 1

handlerFunction · 0.85

Calls 5

writeIssueFeaturesFunction · 0.90
readFileFunction · 0.90
writeIssueFeaturesIntoFunction · 0.90
issueFeaturesOfFunction · 0.85
testMethod · 0.80

Tested by

no test coverage detected