2021-03-21 06:45:15 +01:00
|
|
|
load("//ts/esbuild:upstream.bzl", _esbuild = "esbuild_macro")
|
2021-03-20 05:02:19 +01:00
|
|
|
|
|
|
|
def esbuild(name, **kwargs):
|
|
|
|
_esbuild(
|
|
|
|
name = name,
|
|
|
|
tool = select({
|
|
|
|
"@bazel_tools//src/conditions:darwin": "@esbuild_darwin//:bin/esbuild",
|
|
|
|
"@bazel_tools//src/conditions:windows": "@esbuild_windows//:esbuild.exe",
|
|
|
|
"@bazel_tools//src/conditions:linux_x86_64": "@esbuild_linux//:bin/esbuild",
|
|
|
|
}),
|
|
|
|
minify = select({
|
|
|
|
"//:release": True,
|
|
|
|
"//conditions:default": False,
|
|
|
|
}),
|
|
|
|
**kwargs
|
|
|
|
)
|