Index: sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart b/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart |
index 16411174ef51356dd81dd9e4c6daf89dc828ea72..6f232298add7d8513b2353f879bb143749db3b07 100644 |
--- a/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart |
+++ b/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart |
@@ -27,7 +27,8 @@ import 'build_environment.dart'; |
/// The set of all valid configuration options for this transformer. |
final _validOptions = new Set<String>.from([ |
'commandLineOptions', 'checked', 'minify', 'verbose', 'environment', |
- 'analyzeAll', 'suppressWarnings', 'suppressHints', 'terse' |
+ 'analyzeAll', 'suppressWarnings', 'suppressHints', 'suppressPackageWarnings', |
+ 'terse' |
]); |
/// A [Transformer] that uses dart2js's library API to transform Dart |
@@ -117,6 +118,8 @@ class Dart2JSTransformer extends Transformer implements LazyTransformer { |
analyzeAll: _configBool('analyzeAll'), |
suppressWarnings: _configBool('suppressWarnings'), |
suppressHints: _configBool('suppressHints'), |
+ suppressPackageWarnings: _configBool( |
+ 'suppressPackageWarnings', defaultsTo: true), |
terse: _configBool('terse'))).then((_) { |
stopwatch.stop(); |
transform.logger.info("Took ${stopwatch.elapsed} to compile $id."); |