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

Function loaded

ark/aot/unplugin.ts:2549–2553  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2547 },
2548 load: async id => {
2549 const loaded = () =>
2550 context.load({ ...res.get(id), id }).then(
2551 info => info?.code ?? undefined,
2552 () => undefined
2553 )
2554 if (!isTransformed(id)) return loaded()
2555 // read from its file whether or not it has reached the plugin, so
2556 // transform order can't change the scan or the bundle

Callers 1

rollupScanOfFunction · 0.85

Calls 2

getMethod · 0.65
loadMethod · 0.45

Tested by

no test coverage detected