| Index: pkg/polymer/lib/src/transform.dart
|
| diff --git a/pkg/polymer/lib/src/transform.dart b/pkg/polymer/lib/src/transform.dart
|
| index d2bf910dc97981ef9a76b8cda89ce591c26e060e..561dd499d8a2556676f073fe9ae41da7189fcc51 100644
|
| --- a/pkg/polymer/lib/src/transform.dart
|
| +++ b/pkg/polymer/lib/src/transform.dart
|
| @@ -11,17 +11,21 @@ import 'transform/code_extractor.dart';
|
| import 'transform/import_inliner.dart';
|
| import 'transform/script_compactor.dart';
|
| import 'transform/polyfill_injector.dart';
|
| +import 'transform/common.dart';
|
|
|
| export 'transform/code_extractor.dart';
|
| export 'transform/import_inliner.dart';
|
| export 'transform/script_compactor.dart';
|
| export 'transform/polyfill_injector.dart';
|
| +export 'transform/common.dart' show TransformOptions;
|
|
|
| -/** Phases to deploy a polymer application. */
|
| -var phases = [
|
| - [new InlineCodeExtractor()],
|
| - [new ObservableTransformer()],
|
| - [new ImportedElementInliner()],
|
| - [new ScriptCompactor()],
|
| - [new PolyfillInjector()]
|
| -];
|
| +/** Creates phases to deploy a polymer application. */
|
| +List<List<Transformer>> createDeployPhases(TransformOptions options) {
|
| + return [
|
| + [new InlineCodeExtractor(options)],
|
| + [new ObservableTransformer()],
|
| + [new ImportedElementInliner(options)],
|
| + [new ScriptCompactor(options)],
|
| + [new PolyfillInjector(options)]
|
| + ];
|
| +}
|
|
|