UNPKG

ts-project-builder

Version:

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

13 lines (10 loc) 298 B
import { relative } from './browser-path.mjs'; import { isAbsolute } from './path.mjs'; import { resolve } from 'node:path'; function relativeId(id) { if (!isAbsolute(id)) return id; return relative(resolve(), id); } export { relativeId }; //# sourceMappingURL=relativeId.mjs.map