refactor(dart/transform): Use targeted transformers

TL;DR: Modify pubspec.yaml files to use the recommended "targeted"
transformers. The unified "simple" angular2 transformer still works as
always, but we want to encourage use of the targeted transformers
whereever possible.

See [the wiki](https://github.com/angular/angular/wiki/Advanced-Transformer-Configuration)
for details about targeted transformers.

See #1872
This commit is contained in:
Tim Blasi
2016-03-07 10:38:42 -08:00
committed by Alex Eagle
parent 169869a195
commit 43bb31c6c6
4 changed files with 14 additions and 9 deletions

View File

@ -9,11 +9,10 @@ dependency_overrides:
angular2:
path: ../../../dist/dart/angular2
transformers:
- angular2:
- angular2/transform/codegen:
platform_directives: 'package:angular2/src/common/directives.dart#CORE_DIRECTIVES'
entry_points:
- web/index.dart
- angular2/transform/reflection_remover:
$include: [web/index.dart]
- $dart2js:
minify: true
commandLineOptions: