feat(ivy): implement listing lazy routes for specific entry point in ngtsc (#28542)

Related: angular/angular-cli#13532

Jira issue: FW-860

PR Close #28542
This commit is contained in:
George Kalpakas
2019-02-05 16:47:35 +02:00
committed by Miško Hevery
parent f358188ec1
commit e6c51b3e06
4 changed files with 561 additions and 86 deletions

View File

@ -192,9 +192,7 @@ export class NgtscProgram implements api.Program {
listLazyRoutes(entryRoute?: string|undefined): api.LazyRoute[] {
this.ensureAnalyzed();
// Listing specific routes is unsupported for now, so we erroneously return
// all lazy routes instead (which should be okay for the CLI's usage).
return this.routeAnalyzer !.listLazyRoutes();
return this.routeAnalyzer !.listLazyRoutes(entryRoute);
}
getLibrarySummaries(): Map<string, api.LibrarySummary> {