| 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)]
|
| ]);
|
|
|