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

Function externalModulesLoadingArktype

ark/aot/unplugin.ts:498–503  ·  view source on GitHub ↗
(specifier: string, from: string)

Source from the content-addressed store, hash-verified

496 // read once each, as each rebuild leaves the same dependencies external
497 const modulesLoadingArktypeByExternal: Record<string, string[]> = {}
498 const externalModulesLoadingArktype = (specifier: string, from: string) =>
499 (modulesLoadingArktypeByExternal[`${from}\0${specifier}`] ??=
500 modulesLoadingArktype(
501 isAbsolute(specifier) ? externalPackageOf(specifier) : specifier,
502 from
503 ))
504 const keepCompiler = (bundler: BundlerCompiler) => {
505 compiler = bundler
506 resolveIn(bundler.options.mode === "development")

Callers 2

keepCompilerFunction · 0.85

Calls 2

modulesLoadingArktypeFunction · 0.90
externalPackageOfFunction · 0.85

Tested by

no test coverage detected