Skip to content

@saflib/imports


Interface: AssembleUsedByOptions

Reverse-index of non-test importers for each export in a package. Pure — no FS / git / DB. Key: ${filePath}\0${exportName}.

Also records same-file self-usages from UsedByImporterUnit.localExportUsages.

Properties

resolveImportTarget()?

optional resolveImportTarget: (importerPath, specifier) => null | string

Resolve an import to the repo-relative path of the target module file. Used for workspace package exports and # import maps where moduleTargetFromImport only matches disk-shaped subpaths.

Parameters

ParameterType
importerPathstring
specifierstring

Returns

null | string