From 91fd9975ef992925666c6c8dcf77017fb03481c5 Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Mon, 15 Jun 2015 10:19:20 -0700 Subject: [PATCH] fix pub serve hang on reload with the web_components transformer --- CHANGELOG.md | 4 ++++ lib/build/web_components.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ab67dd..304a926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +#### 0.12.0+1 + * Fix hang on reload with the `web_components` transformer in pub serve, + [27](https://github.com/dart-lang/web-components/issues/27). + #### 0.12.0 * Update to js version [0.7.3](https://github.com/webcomponents/webcomponentsjs/tree/v0.7.3). diff --git a/lib/build/web_components.dart b/lib/build/web_components.dart index 4a71606..c7b6eb0 100644 --- a/lib/build/web_components.dart +++ b/lib/build/web_components.dart @@ -59,7 +59,6 @@ class WebComponentsTransformer extends Transformer { if (options.entryPoints != null) { return options.entryPoints.contains(id.path); } - if (id.path == 'web/index.bootstrap.dart') return true; // If no entry point is supplied, then any html file under web/ or test/ is // an entry point. return (id.path.startsWith('web/') || id.path.startsWith('test/')) && @@ -91,6 +90,7 @@ class WebComponentsTransformer extends Transformer { transform .addOutput(new Asset.fromString(primaryInput.id, doc.outerHtml)); transform.addOutput(bootstrap); + resolver.release(); }); }); } diff --git a/pubspec.yaml b/pubspec.yaml index 63a8c65..d268d4e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: web_components -version: 0.12.0 +version: 0.12.0+1 author: Polymer.dart Authors homepage: https://www.dartlang.org/polymer-dart/ description: >