@@ -46,6 +46,7 @@ export class ProjectPrincipal {
4646 asyncCompilers : AsyncCompilers = new Map ( ) ;
4747 private paths = new Map < string , Record < string , string [ ] > > ( ) ;
4848 private rootDirs = new Map < string , string [ ] > ( ) ;
49+ private tsConfigFile : string | undefined ;
4950 private extensions = new Set ( DEFAULT_EXTENSIONS ) ;
5051
5152 cache : CacheConsultant < FileNode > ;
@@ -67,6 +68,7 @@ export class ProjectPrincipal {
6768 this . cache = new CacheConsultant ( 'root' , options ) ;
6869 this . toSourceFilePath = toSourceFilePath ;
6970 this . findWorkspaceManifestImports = findWorkspaceManifestImports ;
71+ this . tsConfigFile = options . tsConfigFile ? toAbsolute ( options . tsConfigFile , options . cwd ) : undefined ;
7072 this . pluginVisitorObjects . push ( createBunShellVisitor ( this . pluginCtx ) ) ;
7173 this . fileManager = new SourceFileManager ( {
7274 compilers : [ this . syncCompilers , this . asyncCompilers ] ,
@@ -119,7 +121,8 @@ export class ProjectPrincipal {
119121 { scopedPaths, scopedRootDirs } ,
120122 customCompilerExtensions ,
121123 this . toSourceFilePath ,
122- this . findWorkspaceManifestImports
124+ this . findWorkspaceManifestImports ,
125+ this . tsConfigFile
123126 ) ;
124127 }
125128
0 commit comments