mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
support expanding locations in esbuild arguments
This commit is contained in:
parent
5160d0c418
commit
944528d462
1 changed files with 3 additions and 2 deletions
|
@ -101,7 +101,7 @@ def _esbuild_impl(ctx):
|
|||
args.add_joined(["--tsconfig", jsconfig_file.path], join_with = "=")
|
||||
inputs.append(jsconfig_file)
|
||||
|
||||
args.add_all(ctx.attr.args)
|
||||
args.add_all([ctx.expand_location(arg) for arg in ctx.attr.args])
|
||||
|
||||
ctx.actions.run(
|
||||
inputs = inputs,
|
||||
|
@ -122,7 +122,8 @@ esbuild = rule(
|
|||
attrs = {
|
||||
"args": attr.string_list(
|
||||
default = [],
|
||||
doc = "A list of extra arguments that are included in the call to esbuild",
|
||||
doc = """A list of extra arguments that are included in the call to esbuild.
|
||||
$(location ...) can be used to resolve the path to a Bazel target.""",
|
||||
),
|
||||
"define": attr.string_list(
|
||||
default = [],
|
||||
|
|
Loading…
Reference in a new issue