| 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 b4318c36540e4354d4bb64676d8ce8541ea5c2a9..d7a6e8ee1556dbd64ed514d2f7e2b306aada7d0d 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/command/build.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/command/build.dart
|
| @@ -294,7 +294,7 @@ class BuildCommand extends PubCommand {
|
| var entrypointDirs = entrypoints
|
| // Convert the asset path to a native-separated one and get the
|
| // directory containing the entrypoint.
|
| - .map((id) => path.dirname(path.joinAll(path.url.split(id.path))))
|
| + .map((id) => path.dirname(path.fromUri(id.path)))
|
| // Don't copy files to the top levels of the build directories since
|
| // the normal lib asset copying will take care of that.
|
| .where((dir) => dir.contains(path.separator))
|
|
|