resolve_specifier.ts view source
(specifier: string, dir: string): Promise<ResolvedSpecifier> import {resolve_specifier} from '@fuzdev/gro/resolve_specifier.js'; 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
stringdir
stringreturns
Promise<ResolvedSpecifier>