@@ -37,6 +37,7 @@ export class NgccProcessor {
37
37
private readonly compilationErrors : ( Error | string ) [ ] ,
38
38
private readonly basePath : string ,
39
39
private readonly compilerOptions : ts . CompilerOptions ,
40
+ private readonly tsConfigPath : string ,
40
41
) {
41
42
this . _logger = new NgccLogger ( this . compilationWarnings , this . compilationErrors ) ;
42
43
this . _nodeModulesDirectory = this . findNodeModulesDirectory ( this . basePath ) ;
@@ -82,6 +83,8 @@ export class NgccProcessor {
82
83
'--first-only' , /** compileAllFormats */
83
84
'--create-ivy-entry-points' , /** createNewEntryPointFormats */
84
85
'--async' ,
86
+ '--tsconfig' , /** tsConfigPath */
87
+ this . tsConfigPath ,
85
88
] ,
86
89
{
87
90
stdio : [ 'inherit' , process . stderr , process . stderr ] ,
@@ -127,7 +130,10 @@ export class NgccProcessor {
127
130
compileAllFormats : false ,
128
131
createNewEntryPointFormats : true ,
129
132
logger : this . _logger ,
133
+ // Path mappings are not longer required since NGCC 9.1
134
+ // We keep using them to be backward compatible with NGCC 9.0
130
135
pathMappings : this . _pathMappings ,
136
+ tsConfigPath : this . tsConfigPath ,
131
137
} ) ;
132
138
timeEnd ( timeLabel ) ;
133
139
0 commit comments