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
		
			
				
	
	
		
			24 lines
		
	
	
		
			613 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			613 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: hello_world
 | |
| environment:
 | |
|   sdk: '>=1.10.0 <2.0.0'
 | |
| dependencies:
 | |
|   observe: '^0.13.1'
 | |
|   angular2: any
 | |
|   browser: '^0.10.0'
 | |
| dependency_overrides:
 | |
|   angular2:
 | |
|     path: ../../../dist/dart/angular2
 | |
| transformers:
 | |
| - angular2/transform/codegen:
 | |
|     platform_directives: 'package:angular2/src/common/directives.dart#CORE_DIRECTIVES'
 | |
| - angular2/transform/reflection_remover:
 | |
|     $include: [web/index.dart]
 | |
| - $dart2js:
 | |
|     minify: true
 | |
|     commandLineOptions:
 | |
|     - --show-package-warnings
 | |
|     - --trust-type-annotations
 | |
|     - --trust-primitives
 | |
|     # Uncomment to generate summaries from dart2js
 | |
|     # - --dump-info
 |