Skip to content

Commit 892194d

Browse files
committed
Used the TypeScript getCanonicalFileName
1 parent f233eb6 commit 892194d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Host.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ module.exports = function (ts) {
113113
};
114114

115115
Host.prototype.getCanonicalFileName = function (filename) {
116-
return this._normalizedRelative(filename);
116+
return ts.sys.useCaseSensitiveFileNames ? filename : filename.toLowerCase();
117117
};
118118

119119
Host.prototype.useCaseSensitiveFileNames = function () {

0 commit comments

Comments
 (0)