mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Normalize triple slash reference paths at resolve time
This commit is contained in:
1 parent
639b2781d7
commit
68aad1b85e
1 file changed
+2
-1
@@ -15,7 +15,8 @@ namespace ts {
|
||||
|
||||
export function resolveTripleslashReference(moduleName: string, containingFile: string): string {
|
||||
const basePath = getDirectoryPath(containingFile);
|
||||
const referencedFileName = isRootedDiskPath(moduleName) ? moduleName : combinePaths(basePath, moduleName);
|
||||
const normalizedModuleName = normalizePath(moduleName);
|
||||
const referencedFileName = isRootedDiskPath(normalizedModuleName) ? normalizedModuleName : combinePaths(basePath, normalizedModuleName);
|
||||
return normalizePath(referencedFileName);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user