refactor(ivy): ngcc - remove the last remnants of path
and canonical-path
(#29643)
The ngcc code now uses `AbsoluteFsPath` and `PathSegment` to do all its path manipulation. PR Close #29643
This commit is contained in:

committed by
Andrew Kushnir

parent
20898f9f4f
commit
029a93963a
@ -6,7 +6,6 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
import {ConstantPool} from '@angular/compiler';
|
||||
import * as path from 'path';
|
||||
import * as ts from 'typescript';
|
||||
|
||||
import {BaseDefDecoratorHandler, ComponentDecoratorHandler, DirectiveDecoratorHandler, InjectableDecoratorHandler, NgModuleDecoratorHandler, PipeDecoratorHandler, ReferencesRegistry, ResourceLoader} from '../../../src/ngtsc/annotations';
|
||||
@ -57,7 +56,7 @@ class NgccResourceLoader implements ResourceLoader {
|
||||
preload(): undefined|Promise<void> { throw new Error('Not implemented.'); }
|
||||
load(url: string): string { return this.fs.readFile(AbsoluteFsPath.resolve(url)); }
|
||||
resolve(url: string, containingFile: string): string {
|
||||
return path.resolve(path.dirname(containingFile), url);
|
||||
return AbsoluteFsPath.resolve(AbsoluteFsPath.dirname(AbsoluteFsPath.from(containingFile)), url);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user