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

Function externalPackageOf

ark/aot/unplugin.ts:3193–3196  ·  view source on GitHub ↗
(specifier: string)

Source from the content-addressed store, hash-verified

3191
3192// a tool may leave a dependency external by the file it resolves to
3193const externalPackageOf = (specifier: string): string =>
3194 isAbsolute(specifier) ?
3195 (dependencyOf(specifier)?.[1] ?? specifier)
3196 : packageNameOf(specifier)
3197
3198// Rolldown's module info has no isExternal, but no code for an external
3199const rollupBundleOf = (context: RollupContext): BundleModules => {

Callers 2

Calls 2

dependencyOfFunction · 0.90
packageNameOfFunction · 0.90

Tested by

no test coverage detected