| Index: pkg/polymer/lib/src/build/common.dart
|
| diff --git a/pkg/polymer/lib/src/build/common.dart b/pkg/polymer/lib/src/build/common.dart
|
| index 6233aa38e5abb951690445d650cf389103724ad7..f5b44315d45c472fe05115df6295d66072207cf6 100644
|
| --- a/pkg/polymer/lib/src/build/common.dart
|
| +++ b/pkg/polymer/lib/src/build/common.dart
|
| @@ -78,6 +78,9 @@ abstract class PolymerTransformer {
|
| checkDocType: options.isHtmlEntryPoint(id));
|
| });
|
| }
|
| +
|
| + Future<bool> assetExists(AssetId id, Transform transform) =>
|
| + transform.getInput(id).then((_) => true).catchError((_) => false);
|
| }
|
|
|
| /** Create an [AssetId] for a [url] seen in the [source] asset. */
|
|
|