Skip to content

Commit 45f4adc

Browse files
committed
Remove obsolete comment
1 parent 435e93f commit 45f4adc

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/compiler/moduleSpecifiers.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,6 @@ namespace ts.moduleSpecifiers {
791791
const packageJsonContent = cachedPackageJson?.packageJsonContent || JSON.parse(host.readFile!(packageJsonPath)!);
792792
const importMode = overrideMode || importingSourceFile.impliedNodeFormat;
793793
if (getEmitModuleResolutionKind(options) === ModuleResolutionKind.Node16 || getEmitModuleResolutionKind(options) === ModuleResolutionKind.NodeNext) {
794-
// `conditions` *could* be made to go against `importingSourceFile.impliedNodeFormat` if something wanted to generate
795-
// an ImportEqualsDeclaration in an ESM-implied file or an ImportCall in a CJS-implied file. But since this function is
796-
// usually called to conjure an import out of thin air, we don't have an existing usage to call `getModeForUsageAtIndex`
797-
// with, so for now we just stick with the mode of the file.
798794
const conditions = ["node", importMode === ModuleKind.ESNext ? "import" : "require", "types"];
799795
const fromExports = packageJsonContent.exports && typeof packageJsonContent.name === "string"
800796
? tryGetModuleNameFromExports(options, path, packageRootPath, getPackageNameFromTypesPackageName(packageJsonContent.name), packageJsonContent.exports, conditions)

0 commit comments

Comments
 (0)