mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Added emitHost method to return source from node modules
This commit is contained in:
@@ -1361,10 +1361,8 @@ namespace ts {
|
||||
getNewLine: () => host.getNewLine(),
|
||||
getSourceFile: program.getSourceFile,
|
||||
getSourceFileByPath: program.getSourceFileByPath,
|
||||
getSourceFiles: () => filter(program.getSourceFiles(),
|
||||
// Remove JavaScript files found by searching node_modules from the source files to emit
|
||||
sourceFile => !lookUp(jsFilesFoundSearchingNodeModules, sourceFile.path)
|
||||
),
|
||||
getSourceFiles: program.getSourceFiles,
|
||||
getFilesFromNodeModules: () => jsFilesFoundSearchingNodeModules,
|
||||
writeFile: writeFileCallback || (
|
||||
(fileName, data, writeByteOrderMark, onError, sourceFiles) => host.writeFile(fileName, data, writeByteOrderMark, onError, sourceFiles)),
|
||||
isEmitBlocked,
|
||||
|
||||
Reference in New Issue
Block a user