Index: pkg/polymer/lib/src/build/build_filter.dart |
diff --git a/pkg/polymer/lib/src/build/build_filter.dart b/pkg/polymer/lib/src/build/build_filter.dart |
index 8b7d56f8cadf628284f8b70132de106fee442d91..f3efbbb6718e3dc234eae81692fafa04afe4b5b5 100644 |
--- a/pkg/polymer/lib/src/build/build_filter.dart |
+++ b/pkg/polymer/lib/src/build/build_filter.dart |
@@ -9,6 +9,7 @@ library polymer.src.build.build_filter; |
import 'dart:async'; |
import 'package:barback/barback.dart'; |
+import 'package:code_transformers/messages/build_logger.dart'; |
import 'common.dart'; |
/// Removes any files not needed for deployment, such as internal build |
@@ -34,7 +35,9 @@ class BuildFilter extends Transformer with PolymerTransformer { |
if (transform.primaryInput.id.extension == _DATA_EXTENSION) { |
return null; |
} |
- return readPrimaryAsHtml(transform).then((document) { |
+ var logger = new BuildLogger(transform, |
+ convertErrorsToWarnings: !options.releaseMode); |
+ return readPrimaryAsHtml(transform, logger).then((document) { |
// Keep .html files that don't use polymer, since the app developer might |
// have non-polymer entrypoints. |
if (document.querySelectorAll('polymer-element').isEmpty) { |