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)) {