66 * found in the LICENSE file at https://angular.io/license
77 */
88
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' ;
1010import { spawnSync } from 'child_process' ;
1111import { accessSync , constants , existsSync } from 'fs' ;
1212import * as path from 'path' ;
@@ -28,27 +28,17 @@ export class NgccProcessor {
2828 private _processedModules = new Set < string > ( ) ;
2929 private _logger : NgccLogger ;
3030 private _nodeModulesDirectory : string ;
31- private _pathMappings : PathMappings | undefined ;
3231
3332 constructor (
3433 private readonly propertiesToConsider : string [ ] ,
3534 private readonly inputFileSystem : InputFileSystem ,
3635 private readonly compilationWarnings : ( Error | string ) [ ] ,
3736 private readonly compilationErrors : ( Error | string ) [ ] ,
3837 private readonly basePath : string ,
39- private readonly compilerOptions : ts . CompilerOptions ,
4038 private readonly tsConfigPath : string ,
4139 ) {
4240 this . _logger = new NgccLogger ( this . compilationWarnings , this . compilationErrors ) ;
4341 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- }
5242 }
5343
5444 /** Process the entire node modules tree. */
@@ -130,9 +120,6 @@ export class NgccProcessor {
130120 compileAllFormats : false ,
131121 createNewEntryPointFormats : true ,
132122 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 ,
136123 tsConfigPath : this . tsConfigPath ,
137124 } ) ;
138125 timeEnd ( timeLabel ) ;
0 commit comments