mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
Add comment
This commit is contained in:
parent
12f1d19fa4
commit
e096e308d6
@ -728,6 +728,9 @@ namespace ts {
|
||||
}
|
||||
|
||||
if (extensions === Extensions.JavaScript) {
|
||||
// A package.json "main" may specify an exact filename, or may choose to omit an extension.
|
||||
// We tried the ts extensions erlier, now try the js extensions.
|
||||
// tryReadPackageJsonMainOrTypes returns main iff extensions is Extensions.JavaScript.
|
||||
const resolved = tryAddingExtensions(mainOrTypesFile, Extensions.JavaScript, failedLookupLocations, onlyRecordFailures, state);
|
||||
if (resolved) {
|
||||
return resolved;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user