mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 22:51:17 -05:00
Since there arent any user given extensions, have extensions start with "." like before
This commit is contained in:
@@ -515,7 +515,7 @@ namespace ts {
|
||||
if (!hasConflictingExtension) {
|
||||
// Add the file only if there is no higher priority extension file already included
|
||||
// eg. when a.d.ts and a.js are present in the folder, include only a.d.ts not a.js
|
||||
const baseName = fileName.substr(0, fileName.length - currentExtension.length - 1);
|
||||
const baseName = fileName.substr(0, fileName.length - currentExtension.length);
|
||||
if (!hasProperty(filesSeen, baseName)) {
|
||||
filesSeen[baseName] = true;
|
||||
fileNames.push(fileName);
|
||||
|
||||
Reference in New Issue
Block a user