Chromium Code Reviews| Index: sdk/lib/_internal/pub/lib/src/command/build.dart |
| diff --git a/sdk/lib/_internal/pub/lib/src/command/build.dart b/sdk/lib/_internal/pub/lib/src/command/build.dart |
| index 4b6ab0da3005938aa974abef5af1f1986f035850..0f1dc24dc97a1ec780c69d50dabdc45a58983913 100644 |
| --- a/sdk/lib/_internal/pub/lib/src/command/build.dart |
| +++ b/sdk/lib/_internal/pub/lib/src/command/build.dart |
| @@ -43,7 +43,7 @@ class BuildCommand extends BarbackCommand { |
| defaultsTo: "build"); |
| } |
| - Future onRunTransformerCommand() { |
| + Future onRunTransformerCommand() async { |
| cleanDir(outputDirectory); |
| var errorsJson = []; |
| @@ -124,12 +124,10 @@ class BuildCommand extends BarbackCommand { |
| /// |
| /// If [asset] is in the special "packages" directory, writes it to every |
| /// build directory. |
| - Future _writeAsset(Asset asset) { |
| + Future _writeAsset(Asset asset) async { |
| // In release mode, strip out .dart files since all relevant ones have been |
| // compiled to JavaScript already. |
| - if (mode == BarbackMode.RELEASE && asset.id.extension == ".dart") { |
| - return new Future.value(); |
| - } |
| + if (mode == BarbackMode.RELEASE && asset.id.extension == ".dart") return; |
|
nweiz
2014/08/27 20:10:07
The analyzer will complain if this isn't "return n
Bob Nystrom
2014/08/27 21:35:32
I'm not sure if that's the case. I'll start an ema
|
| var destPath = _idToPath(asset.id); |