| 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 5131ea24ee5e084f331603b2dc8687f473f8d7a2..8a4c92113c511102d024b4600e67d1b933c50f09 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/command/build.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/command/build.dart
|
| @@ -223,7 +223,7 @@ class BuildCommand extends PubCommand {
|
| /// Returns the number of files it copied.
|
| int _copyBrowserJsFiles(Iterable<AssetId> entrypoints) {
|
| // Must depend on the browser package.
|
| - if (!entrypoint.root.dependencies.any(
|
| + if (!entrypoint.root.immediateDependencies.any(
|
| (dep) => dep.name == 'browser' && dep.source == 'hosted')) {
|
| return 0;
|
| }
|
|
|