From ce2d90d911aca53cd21004699fc385c247609fea Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Mon, 15 Jun 2015 16:16:15 +0200 Subject: [PATCH] fixes issue #27 --- lib/build/web_components.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/build/web_components.dart b/lib/build/web_components.dart index 4a71606..02ce3c4 100644 --- a/lib/build/web_components.dart +++ b/lib/build/web_components.dart @@ -49,7 +49,7 @@ Asset generateWebComponentsBootstrap(Resolver resolver, Transform transform, /// 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) @@ -75,7 +75,8 @@ class WebComponentsTransformer extends Transformer { 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');