MCPcopy
hub / github.com/tailwindlabs/prettier-plugin-tailwindcss / resolveIfRelative

Function resolveIfRelative

src/sorter.ts:96–99  ·  view source on GitHub ↗
(base: string, filePath?: string)

Source from the content-addressed store, hash-verified

94}
95
96function resolveIfRelative(base: string, filePath?: string) {
97 if (!filePath) return null
98 return path.isAbsolute(filePath) ? filePath : path.resolve(base, filePath)
99}
100
101let pathToApiMap = expiringMap<string | null, Promise<UnifiedApi>>(10_000)
102

Callers 1

getTailwindConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…