From 3442d311cf0ab0ee3fc9afad14466df9454c1ac4 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 26 May 2021 15:57:30 -0700 Subject: [PATCH] Fix outFile check (#44277) --- src/compiler/watchUtilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/watchUtilities.ts b/src/compiler/watchUtilities.ts index 970f6f24969..647c0ffdd14 100644 --- a/src/compiler/watchUtilities.ts +++ b/src/compiler/watchUtilities.ts @@ -473,7 +473,7 @@ namespace ts { // We want to ignore emit file check if file is not going to be emitted next to source file // In that case we follow config file inclusion rules - if (options.outFile || options.outDir) return false; + if (outFile(options) || options.outDir) return false; // File if emitted next to input needs to be ignored if (fileExtensionIs(fileOrDirectoryPath, Extension.Dts)) {