Skip to content
This repository has been archived by the owner on Jan 20, 2018. It is now read-only.

Commit

Permalink
Merge pull request #28 from kasperpeulen/patch-2
Browse files Browse the repository at this point in the history
fixes issue #27
  • Loading branch information
jakemac53 committed Jun 15, 2015
2 parents 9e2ee80 + ce2d90d commit cea8c50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/build/web_components.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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');
Expand Down

0 comments on commit cea8c50

Please sign in to comment.