| 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 0f1dc24dc97a1ec780c69d50dabdc45a58983913..f1f6625d0e94b690e7b1ecede793e92abc97e334 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/command/build.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/command/build.dart
|
| @@ -221,7 +221,7 @@ class BuildCommand extends BarbackCommand {
|
| /// Ensures that the [name].js file is copied into [directory] in [target],
|
| /// under `packages/browser/`.
|
| void _addBrowserJs(String directory, String name) {
|
| - var jsPath = path.join(entrypoint.root.dir,
|
| + var jsPath = entrypoint.root.path(
|
| outputDirectory, directory, 'packages', 'browser', '$name.js');
|
| ensureDir(path.dirname(jsPath));
|
|
|
|
|