resolve_specifier.ts view source
(specifier: string, dir: string): Promise<ResolvedSpecifier> Maps an import specifier relative to dir,
and infer the correct extension following Vite conventions.
If no .js file is found for the specifier on the filesystem, it assumes .ts.
specifier
type
stringdir
type
stringreturns
Promise<ResolvedSpecifier>