import { createMatchPath, type ConfigLoaderSuccessResult } from "tsconfig-paths" export async function resolveImport( importPath: string, config: Pick ) { return createMatchPath(config.absoluteBaseUrl, config.paths)( importPath, undefined, () => true, [".ts", ".tsx"] ) }