OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library pub.barback.transformer_loader; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:barback/barback.dart'; | 7 import 'package:barback/barback.dart'; |
10 | 8 |
11 import '../log.dart' as log; | 9 import '../log.dart' as log; |
12 import '../utils.dart'; | 10 import '../utils.dart'; |
13 import 'asset_environment.dart'; | 11 import 'asset_environment.dart'; |
14 import 'barback_server.dart'; | 12 import 'barback_server.dart'; |
15 import 'dart2js_transformer.dart'; | 13 import 'dart2js_transformer.dart'; |
16 import 'excluding_transformer.dart'; | 14 import 'excluding_transformer.dart'; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 Iterable<Set<TransformerConfig>> phases) async { | 116 Iterable<Set<TransformerConfig>> phases) async { |
119 var result = await Future.wait(phases.map((phase) async { | 117 var result = await Future.wait(phases.map((phase) async { |
120 var transformers = await waitAndPrintErrors(phase.map(transformersFor)); | 118 var transformers = await waitAndPrintErrors(phase.map(transformersFor)); |
121 return unionAll(transformers); | 119 return unionAll(transformers); |
122 })); | 120 })); |
123 | 121 |
124 // Return a growable list so that callers can add phases. | 122 // Return a growable list so that callers can add phases. |
125 return result.toList(); | 123 return result.toList(); |
126 } | 124 } |
127 } | 125 } |
OLD | NEW |