mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
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:
parent
432f950a5e
commit
2e1104c724
2 changed files with 4 additions and 2 deletions
|
|
@ -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",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue