build: enable bundle_dts for router package (#28833)

This PR also changes the name of `EmptyOutletComponent` to `ɵEmptyOutletComponent`. This is because `ngcc` requires the node to retain the original name while dts bundler will rename the node is it's only exported using the aliases.

Example typings files:
```ts
declare class EmptyOutletComponent {
}
export {EmptyOutletComponent as ɵEmptyOutletComponent}
```

will be emitted as
```ts
export declare class ɵEmptyOutletComponent {
}
```

PR Close #28833
This commit is contained in:
Alan Agius
2019-02-19 18:52:44 +01:00
committed by Kara Erickson
parent c866c11bf8
commit 29f57e315e
5 changed files with 8 additions and 3 deletions

View File

@ -18,5 +18,7 @@ import {Component} from '@angular/core';
* to this `EmptyOutletComponent`.
*/
@Component({template: `<router-outlet></router-outlet>`})
export class EmptyOutletComponent {
}
export class ɵEmptyOutletComponent {
}
export {ɵEmptyOutletComponent as EmptyOutletComponent};