mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 10:55:15 -06:00
Fix: test for presence, not absence
This commit is contained in:
parent
ed82fddb8c
commit
4e20882ac0
@ -333,7 +333,7 @@ namespace ts {
|
||||
if (host.resolveModuleNames) {
|
||||
resolveModuleNamesWorker = (moduleNames, containingFile) => host.resolveModuleNames(moduleNames, containingFile).map(resolved => {
|
||||
// An older host may have omitted extension, in which case we should infer it from the file extension of resolvedFileName.
|
||||
if (!resolved || resolved.extension === undefined) {
|
||||
if (!resolved || resolved.extension !== undefined) {
|
||||
return resolved;
|
||||
}
|
||||
resolved = clone(resolved);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user