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

Function add

ark/aot/unplugin.ts:3202–3209  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

3200 const bundle: BundleModules = { externals: [], files: [], importerOf: {} }
3201 const seen = new Set<string>()
3202 const add = (id: string) => {
3203 if (seen.has(id)) return
3204 seen.add(id)
3205 const info = context.getModuleInfo(id)
3206 if (!info || (info.isExternal ?? info.code === null))
3207 bundle.externals.push(id)
3208 else bundle.files.push(id)
3209 }
3210 for (const id of context.getModuleIds()) {
3211 add(id)
3212 const info = context.getModuleInfo(id)

Callers 1

rollupBundleOfFunction · 0.70

Calls 3

hasMethod · 0.45
addMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected