6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
- import { LogLevel , Logger , PathMappings , process as mainNgcc } from '@angular/compiler-cli/ngcc' ;
9
+ import { LogLevel , Logger , process as mainNgcc } from '@angular/compiler-cli/ngcc' ;
10
10
import { spawnSync } from 'child_process' ;
11
11
import { accessSync , constants , existsSync } from 'fs' ;
12
12
import * as path from 'path' ;
@@ -28,27 +28,17 @@ export class NgccProcessor {
28
28
private _processedModules = new Set < string > ( ) ;
29
29
private _logger : NgccLogger ;
30
30
private _nodeModulesDirectory : string ;
31
- private _pathMappings : PathMappings | undefined ;
32
31
33
32
constructor (
34
33
private readonly propertiesToConsider : string [ ] ,
35
34
private readonly inputFileSystem : InputFileSystem ,
36
35
private readonly compilationWarnings : ( Error | string ) [ ] ,
37
36
private readonly compilationErrors : ( Error | string ) [ ] ,
38
37
private readonly basePath : string ,
39
- private readonly compilerOptions : ts . CompilerOptions ,
40
38
private readonly tsConfigPath : string ,
41
39
) {
42
40
this . _logger = new NgccLogger ( this . compilationWarnings , this . compilationErrors ) ;
43
41
this . _nodeModulesDirectory = this . findNodeModulesDirectory ( this . basePath ) ;
44
-
45
- const { baseUrl, paths } = this . compilerOptions ;
46
- if ( baseUrl && paths ) {
47
- this . _pathMappings = {
48
- baseUrl,
49
- paths,
50
- } ;
51
- }
52
42
}
53
43
54
44
/** Process the entire node modules tree. */
@@ -130,9 +120,6 @@ export class NgccProcessor {
130
120
compileAllFormats : false ,
131
121
createNewEntryPointFormats : true ,
132
122
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
135
- pathMappings : this . _pathMappings ,
136
123
tsConfigPath : this . tsConfigPath ,
137
124
} ) ;
138
125
timeEnd ( timeLabel ) ;
0 commit comments