UNPKG

ts-project-builder

Version:

Rollup-based TypeScript builder with multi-format output and built-in common plugins.

11 lines (9 loc) 214 B
import { relative } from './browser-path'; import { isAbsolute, resolve, } from './path'; export function relativeId(id: string) { if (!isAbsolute(id)) return id; return relative(resolve(), id); }