Index: pkg/polymer/lib/transformer.dart |
diff --git a/pkg/polymer/lib/transformer.dart b/pkg/polymer/lib/transformer.dart |
index 6183a74f488064567bd88bce5f0ed50cfbe2636f..9e27906498dcf2ad688c6da2bf9c84efe7f8a899 100644 |
--- a/pkg/polymer/lib/transformer.dart |
+++ b/pkg/polymer/lib/transformer.dart |
@@ -9,7 +9,6 @@ import 'package:barback/barback.dart'; |
import 'package:observe/transformer.dart'; |
import 'src/build/build_filter.dart'; |
-import 'src/build/code_extractor.dart'; |
import 'src/build/common.dart'; |
import 'src/build/import_inliner.dart'; |
import 'src/build/linter.dart'; |
@@ -66,12 +65,14 @@ _readEntrypoints(value) { |
return entryPoints; |
} |
+/// Create deploy phases for Polymer. Note that inlining HTML Imports |
+/// comes first (other than linter), which allows the rest of the |
+/// HTML-processing phases to operate only on HTML that is actually imported. |
List<List<Transformer>> _createDeployPhases(TransformOptions options) { |
return [ |
[new Linter(options)], |
- [new InlineCodeExtractor(options)], |
- [new ObservableTransformer()], |
[new ImportInliner(options)], |
+ [new ObservableTransformer()], |
[new ScriptCompactor(options)], |
[new PolyfillInjector(options)], |
[new BuildFilter(options)] |