(rootDir: string, relativeFilename: string)
| 19 | // rootDir must be an absolute path and relativeFilename must be simple |
| 20 | // (e.g.: foo/bar or ../foo/bar, but never ./foo or foo/../bar) |
| 21 | export function resolve(rootDir: string, relativeFilename: string): string { |
| 22 | return relativeFilename.startsWith(INDIRECTION_FRAGMENT) |
| 23 | ? path.resolve(rootDir, relativeFilename) |
| 24 | : rootDir + path.sep + relativeFilename; |
| 25 | } |
no test coverage detected