diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-10-27 08:12:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 08:12:40 -0400 |
commit | bfd9912e1faa30a92472252b77878714e668a3d4 (patch) | |
tree | 695d3d5715439796c48780df49039f1803d6aae3 /cli/tsc/00_typescript.js | |
parent | 65f12f571bf7b791a0bc8ceb604af3802c487bf9 (diff) |
fix(typescript): allow synthetic default imports when using `ModuleKind.ESNext` (#16438)
Closes #16437
Diffstat (limited to 'cli/tsc/00_typescript.js')
-rw-r--r-- | cli/tsc/00_typescript.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tsc/00_typescript.js b/cli/tsc/00_typescript.js index c39e70e24..01377c8b5 100644 --- a/cli/tsc/00_typescript.js +++ b/cli/tsc/00_typescript.js @@ -51163,7 +51163,7 @@ var ts; var usageMode = file && getUsageModeForExpression(usage); if (file && usageMode !== undefined) { var result = isESMFormatImportImportingCommonjsFormatFile(usageMode, file.impliedNodeFormat); - if (usageMode === ts.ModuleKind.ESNext || result) { + if (result) { return result; } // fallthrough on cjs usages so we imply defaults for interop'd imports, too |