move loader arg into esbuild() invocation

upstream.bzl should be kept as close to upstream as possible, so that
it's easier to send changes upstream and pull in future changes
This commit is contained in:
Damien Elmes 2021-03-29 17:59:06 +10:00
parent 432f950a5e
commit 2e1104c724
2 changed files with 4 additions and 2 deletions

View file

@ -34,11 +34,14 @@ copy_bootstrap_icons(
esbuild(
name = "editor",
args = [
"--loader:.svg=text",
],
entry_point = "index_wrapper.ts",
visibility = ["//visibility:public"],
deps = [
"editor_ts",
"bootstrap-icons",
"editor_ts",
],
)

View file

@ -66,7 +66,6 @@ def _esbuild_impl(ctx):
args.add_joined(["--platform", ctx.attr.platform], join_with = "=")
args.add_joined(["--target", ctx.attr.target], join_with = "=")
args.add_joined(["--log-level", "info"], join_with = "=")
args.add_joined(["--loader", ".svg=text"], join_with = ":")
args.add_joined(["--metafile", metafile.path], join_with = "=")
args.add_all(ctx.attr.define, format_each = "--define:%s")
args.add_all(ctx.attr.external, format_each = "--external:%s")