Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2830)

Unified Diff: pkg/polymer/lib/transformer.dart

Issue 180933002: combine script extractor and import inliner (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix multiple linked scripts Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/lib/src/build/script_compactor.dart ('k') | pkg/polymer/test/build/all_phases_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)]
« no previous file with comments | « pkg/polymer/lib/src/build/script_compactor.dart ('k') | pkg/polymer/test/build/all_phases_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698