From 8a883ae2047e915cb080eefa42dd2fbf3ea7f1c0 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Thu, 24 May 2018 12:38:33 -0700 Subject: [PATCH] Comments --- src/compiler/tsbuild.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler/tsbuild.ts b/src/compiler/tsbuild.ts index ec9e18899aa..406d9a3c2ff 100644 --- a/src/compiler/tsbuild.ts +++ b/src/compiler/tsbuild.ts @@ -252,7 +252,6 @@ namespace ts { } function getOutputJavaScriptFileName(inputFileName: string, configFile: ParsedCommandLine) { - // TODO handle JSX: Preserve const relativePath = getRelativePathFromDirectory(rootDirOfOptions(configFile.options, configFile.options.configFilePath), inputFileName, /*ignoreCase*/ true); const outputPath = resolvePath(configFile.options.outDir || getDirectoryPath(configFile.options.configFilePath), relativePath); return changeExtension(outputPath, (fileExtensionIs(inputFileName, ".tsx") && configFile.options.jsx === JsxEmit.Preserve) ? ".jsx" : ".js"); @@ -295,7 +294,7 @@ namespace ts { const cache = createFileMap(); const configParseHost = parseConfigHostFromCompilerHost(host); - // TODO: Cache invalidation under --watch! + // TODO: Cache invalidation under --watch function parseConfigFile(configFilePath: string) { const sourceFile = host.getSourceFile(configFilePath, ScriptTarget.JSON) as JsonSourceFile; @@ -591,7 +590,6 @@ namespace ts { /** * Removes entries from arrays which appear in later arrays. - * TODO: Use a lookup object to optimize this a bit? */ function removeDuplicatesFromBuildQueue(queue: string[][]): void { // No need to check the last array