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

fixes issue #27 #28

Merged
merged 1 commit into from
Jun 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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