diff --git a/src/compiler/transformers/declarations.ts b/src/compiler/transformers/declarations.ts index 4d87f8255e5..8c3f843bf18 100644 --- a/src/compiler/transformers/declarations.ts +++ b/src/compiler/transformers/declarations.ts @@ -330,7 +330,7 @@ namespace ts { const specifier = moduleSpecifiers.getModuleSpecifier( // We pathify the baseUrl since we pathify the other paths here, so we can still easily check if the other paths are within the baseUrl // TODO: Should we _always_ be pathifying the baseUrl as we read it in? - {...options, baseUrl: options.baseUrl && toPath(options.baseUrl, host.getCurrentDirectory(), host.getCanonicalFileName)}, + { ...options, baseUrl: options.baseUrl && toPath(options.baseUrl, host.getCurrentDirectory(), host.getCanonicalFileName) }, currentSourceFile, toPath(outputFilePath, host.getCurrentDirectory(), host.getCanonicalFileName), toPath(declFileName, host.getCurrentDirectory(), host.getCanonicalFileName),