17 lines
557 B
Python
17 lines
557 B
Python
|
load("@npm//@bazel/esbuild:index.bzl", _esbuild = "esbuild")
|
||
|
|
||
|
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
|
||
|
)
|