Merge pull request #29 from dart-lang/release-resolver
fix pub serve hang on reload with the web_components transformer
diff --git a/lib/build/web_components.dart b/lib/build/web_components.dart
index c7b6eb0..da8fcde 100644
--- a/lib/build/web_components.dart
+++ b/lib/build/web_components.dart
@@ -49,7 +49,7 @@
/// A [Transformer] which runs the `initialize` transformer with
/// some special plugins and also inlines the html imports.
class WebComponentsTransformer extends Transformer {
- final Resolvers _resolvers;
+ Resolvers _resolvers;
TransformOptions options;
WebComponentsTransformer(this.options)
@@ -74,7 +74,8 @@
var mainScriptTag = doc.querySelector('script[type="$dartType"]');
var scriptId = uriToAssetId(primaryInput.id,
mainScriptTag.attributes['src'], logger, mainScriptTag.sourceSpan);
-
+
+ _resolvers = new Resolvers.fromMock(dart_sdk.mockSdkSources);
return _resolvers.get(transform, [scriptId]).then((resolver) {
var newScriptId = new AssetId(scriptId.package,
'${path.url.withoutExtension(scriptId.path)}.initialize.dart');
diff --git a/pubspec.yaml b/pubspec.yaml
index d268d4e..6d7ab92 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,7 +1,7 @@
name: web_components
version: 0.12.0+1
author: Polymer.dart Authors <web-ui-dev@dartlang.org>
-homepage: https://www.dartlang.org/polymer-dart/
+homepage: https://github.com/dart-lang/web-components/
description: >
Polyfills for Shadow DOM, Custom Elements, and HTML Imports.
Custom Elements let authors define their own elements. Authors associate code