diff --git a/packages/bazel/src/builders/files/src/BUILD.bazel.template b/packages/bazel/src/builders/files/src/BUILD.bazel.template index 58fbf4b98e..8ebbfee9aa 100644 --- a/packages/bazel/src/builders/files/src/BUILD.bazel.template +++ b/packages/bazel/src/builders/files/src/BUILD.bazel.template @@ -70,14 +70,14 @@ html_insert_assets( outs = ["_/index.html"], args = [ "--html", - "$(location :index.html)", + "$(execpath :index.html)", "--out", "$@", "--roots", "$(RULEDIR)", "--assets", - "$(location :global_stylesheet.css)", - "$(location @npm//:node_modules/zone.js/dist/zone.min.js)", + "$(execpath :global_stylesheet.css)", + "$(execpath @npm//:node_modules/zone.js/dist/zone.min.js)", "bundle.min.js", ], data = [ diff --git a/tools/defaults.bzl b/tools/defaults.bzl index 4d96e64f52..307de07373 100644 --- a/tools/defaults.bzl +++ b/tools/defaults.bzl @@ -346,7 +346,7 @@ def rollup_bundle(name, testonly = False, **kwargs): name + ".js", ], args = [ - "$(location :%s.es2015.js)" % name, + "$(execpath :%s.es2015.js)" % name, "--types", "--skipLibCheck", "--target", @@ -355,7 +355,7 @@ def rollup_bundle(name, testonly = False, **kwargs): "es2015,dom", "--allowJS", "--outFile", - "$(location :%s.js)" % name, + "$(execpath :%s.js)" % name, ], data = [ name + ".es2015.js", @@ -377,7 +377,7 @@ def rollup_bundle(name, testonly = False, **kwargs): name + ".es5umd.js", ], args = [ - "$(location :%s.umd.js)" % name, + "$(execpath :%s.umd.js)" % name, "--types", "--skipLibCheck", "--target", @@ -386,7 +386,7 @@ def rollup_bundle(name, testonly = False, **kwargs): "es2015,dom", "--allowJS", "--outFile", - "$(location :%s.es5umd.js)" % name, + "$(execpath :%s.es5umd.js)" % name, ], data = [ name + ".umd.js", diff --git a/tools/ng_rollup_bundle/ng_rollup_bundle.bzl b/tools/ng_rollup_bundle/ng_rollup_bundle.bzl index 93f468dd7f..30ecc22054 100644 --- a/tools/ng_rollup_bundle/ng_rollup_bundle.bzl +++ b/tools/ng_rollup_bundle/ng_rollup_bundle.bzl @@ -416,8 +416,8 @@ def ng_rollup_bundle(name, **kwargs): data = [name + ".min.js"], outs = [name + ".min.js.br"], args = [ - "--output=$(location %s.min.js.br)" % name, - "$(location %s.min.js)" % name, + "--output=$(execpath %s.min.js.br)" % name, + "$(execpath %s.min.js)" % name, ], visibility = visibility, ) @@ -439,8 +439,8 @@ def ng_rollup_bundle(name, **kwargs): data = [name + ".min.es2015.js"], outs = [name + ".min.es2015.js.br"], args = [ - "--output=$(location %s.min.es2015.js.br)" % name, - "$(location %s.min.es2015.js)" % name, + "--output=$(execpath %s.min.es2015.js.br)" % name, + "$(execpath %s.min.es2015.js)" % name, ], visibility = visibility, )