Skip to content

Commit

Permalink
fixes issue dart-archive#27
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jun 15, 2015
1 parent 9e2ee80 commit ce2d90d
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 ce2d90d

Please sign in to comment.