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');