@@ -50,6 +50,7 @@ type processedFiles struct {
50
50
sourceFileMetaDatas map [tspath.Path ]ast.SourceFileMetaData
51
51
jsxRuntimeImportSpecifiers map [tspath.Path ]* jsxRuntimeImportSpecifier
52
52
importHelpersImportSpecifiers map [tspath.Path ]* ast.Node
53
+ libFiles collections.Set [tspath.Path ]
53
54
// List of present unsupported extensions
54
55
unsupportedExtensions []string
55
56
sourceFilesFoundSearchingNodeModules collections.Set [tspath.Path ]
@@ -130,6 +131,7 @@ func processAllProgramFiles(
130
131
var importHelpersImportSpecifiers map [tspath.Path ]* ast.Node
131
132
var unsupportedExtensions []string
132
133
var sourceFilesFoundSearchingNodeModules collections.Set [tspath.Path ]
134
+ var libFileSet collections.Set [tspath.Path ]
133
135
134
136
loader .parseTasks .collect (& loader , loader .rootTasks , func (task * parseTask , _ []tspath.Path ) {
135
137
if task .isRedirected {
@@ -148,6 +150,7 @@ func processAllProgramFiles(
148
150
}
149
151
if task .isLib {
150
152
libFiles = append (libFiles , file )
153
+ libFileSet .Add (path )
151
154
} else {
152
155
files = append (files , file )
153
156
}
@@ -197,6 +200,7 @@ func processAllProgramFiles(
197
200
importHelpersImportSpecifiers : importHelpersImportSpecifiers ,
198
201
unsupportedExtensions : unsupportedExtensions ,
199
202
sourceFilesFoundSearchingNodeModules : sourceFilesFoundSearchingNodeModules ,
203
+ libFiles : libFileSet ,
200
204
}
201
205
}
202
206
0 commit comments