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

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

Issue 211393006: Enables codegen support in polymer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/pubspec.yaml » ('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 717ae51764bc0f78265be19c1f48f97ed9445066..c4a224a6ef1155a7f9b8d57c1c98aa420ead1863 100644
--- a/pkg/polymer/lib/transformer.dart
+++ b/pkg/polymer/lib/transformer.dart
@@ -28,7 +28,7 @@ class PolymerTransformerGroup implements TransformerGroup {
final Iterable<Iterable> phases;
PolymerTransformerGroup(TransformOptions options)
- : phases = _createDeployPhases(options);
+ : phases = createDeployPhases(options);
PolymerTransformerGroup.asPlugin(BarbackSettings settings)
: this(_parseSettings(settings));
@@ -69,12 +69,13 @@ _readEntrypoints(value) {
/// comes first (other than linter, if [options.linter] is enabled), which
/// allows the rest of the HTML-processing phases to operate only on HTML that
/// is actually imported.
-List<List<Transformer>> _createDeployPhases(TransformOptions options) {
+List<List<Transformer>> createDeployPhases(
+ TransformOptions options, {String sdkDir}) {
var phases = options.lint ? [[new Linter(options)]] : [];
return phases..addAll([
[new ImportInliner(options)],
[new ObservableTransformer()],
- [new ScriptCompactor(options)],
+ [new ScriptCompactor(options, sdkDir: sdkDir)],
[new PolyfillInjector(options)],
[new BuildFilter(options)]
]);
« no previous file with comments | « pkg/polymer/lib/src/build/script_compactor.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698