Index: lib/src/command/build.dart |
diff --git a/lib/src/command/build.dart b/lib/src/command/build.dart |
index 44b634c47c8d8135603bcfd8f943a204229585b4..38397d150c8ae2c24dc1ed738fd3f3486da84bd8 100644 |
--- a/lib/src/command/build.dart |
+++ b/lib/src/command/build.dart |
@@ -11,6 +11,7 @@ import '../barback/asset_environment.dart'; |
import '../exit_codes.dart' as exit_codes; |
import '../io.dart'; |
import '../log.dart' as log; |
+import '../source/hosted.dart'; |
import '../utils.dart'; |
import 'barback.dart'; |
@@ -202,7 +203,7 @@ class BuildCommand extends BarbackCommand { |
Future _copyBrowserJsFiles(Iterable<AssetId> entrypoints, AssetSet assets) { |
// Must depend on the browser package. |
if (!entrypoint.root.immediateDependencies.any( |
- (dep) => dep.name == 'browser' && dep.source == 'hosted')) { |
+ (dep) => dep.name == 'browser' && dep.source is HostedSource)) { |
return new Future.value(); |
} |