MCPcopy Index your code
hub / github.com/rollup/plugins / makePathsAbsolute

Function makePathsAbsolute

packages/typescript/src/options/normalize.ts:17–23  ·  view source on GitHub ↗
(compilerOptions: PartialCompilerOptions, relativeTo: string)

Source from the content-addressed store, hash-verified

15 * @param relativeTo Paths are resolved relative to this path.
16 */
17export function makePathsAbsolute(compilerOptions: PartialCompilerOptions, relativeTo: string) {
18 for (const pathProp of DIRECTORY_PROPS) {
19 if (compilerOptions[pathProp]) {
20 compilerOptions[pathProp] = resolve(relativeTo, compilerOptions[pathProp] as string);
21 }
22 }
23}
24
25/**
26 * Mutates the compiler options to normalize some values for Rollup.

Callers 1

parseTypescriptConfigFunction · 0.90

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected