typescript-alias-registry.ts view source
AliasRegistrySource import type {AliasRegistrySource} from 'svelte-docinfo/typescript-alias-registry.js'; One emitted module offered to the pre-pass: the program's source file (for a
Svelte module, the svelte2tsx *virtual* — program.getSourceFile returns
undefined for a raw .svelte id, so the caller resolves through
virtualPath) and its ModuleJson.path, which becomes
AliasRegistryEntry.module and ships verbatim on recovered reference
nodes — analyzeCore derives it with the same extractPath call that
mints ModuleJson.path, and normalizeModulePathsInTypes deliberately
skips the module key, so a caller passing anything else (an absolute
path, a virtual-suffixed one) would publish it unrewritten.
sourceFile
type SourceFile
modulePath
type string