Revert "refactor(compiler-cli): expose ngtools api separately (#18952)"

This reverts commit 1953e2af7a.
This commit is contained in:
Jason Aden
2017-08-30 19:01:47 -07:00
parent 9f5996f1ab
commit c2136d18bd
5 changed files with 9 additions and 137 deletions

View File

@ -250,6 +250,13 @@ export interface Program {
*/
loadNgStructureAsync(): Promise<void>;
/**
* Retrieve the lazy route references in the program.
*
* Angular structural information is required to produce these routes.
*/
getLazyRoutes(cancellationToken?: ts.CancellationToken): {[route: string]: string};
/**
* Emit the files requested by emitFlags implied by the program.
*

View File

@ -134,6 +134,8 @@ class AngularCompilerProgram implements Program {
});
}
getLazyRoutes(cancellationToken?: ts.CancellationToken): {[route: string]: string} { return {}; }
emit({emitFlags = EmitFlags.Default, cancellationToken, customTransformers,
emitCallback = defaultEmitCallback}: {
emitFlags?: EmitFlags,