fix(ivy): support listing lazy route for project-root-relative entry point in ngtsc (#28542)

I don't know of any use of this API with a project-root-relative path
(i.e. the cli will always call it with an absolute path), but keeping
the API backwards compatible just in case.

PR Close #28542
This commit is contained in:
George Kalpakas
2019-02-07 19:03:13 +02:00
committed by Miško Hevery
parent 3eec314ba9
commit 188f20fb16
3 changed files with 36 additions and 3 deletions

View File

@ -37,7 +37,7 @@ describe('ngtools_api (deprecated)', () => {
export class ErrorComp2 {}
@NgModule({
declarations: [ErrorComp2, NonExistentComp],
declarations: [ErrorComp2],
imports: [RouterModule.forRoot([{loadChildren: './child#ChildModule'}])]
})
export class MainModule {}
@ -60,7 +60,7 @@ describe('ngtools_api (deprecated)', () => {
});
}
fixmeIvy('FW-629: ngtsc lists lazy routes').it('should list lazy routes recursively', () => {
it('should list lazy routes recursively', () => {
writeSomeRoutes();
const {program, host, options} =
createProgram(['src/main.ts', 'src/child.ts', 'src/child2.ts']);