v0.23.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_esbuild", version = "0.23.0")Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_esbuild",
sha256 = "613a988d64127474aed84b367834de6cd234729fcaa2605a6bc14726b0a32e70",
strip_prefix = "rules_esbuild-0.23.0",
url = "https://github.com/aspect-build/rules_esbuild/releases/download/v0.23.0/rules_esbuild-v0.23.0.tar.gz",
)
######################
# rules_esbuild setup #
######################
# Fetches the rules_esbuild dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_esbuild//esbuild:dependencies.bzl", "rules_esbuild_dependencies")
rules_esbuild_dependencies()
load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")
rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)
# Register a toolchain containing esbuild npm package and native bindings
load("@aspect_rules_esbuild//esbuild:repositories.bzl", "LATEST_ESBUILD_VERSION", "esbuild_register_toolchains")
esbuild_register_toolchains(
name = "esbuild",
esbuild_version = LATEST_ESBUILD_VERSION,
)To use rules_esbuild with bazel-lib 2.0, you must additionally register the coreutils toolchain.
load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")
register_coreutils_toolchains()What's Changed
- fix(publish): pick up secret when passed from caller workflow by @alexeagle in #226
- chore: setup aspect workflows by @jbedard in #227
- chore: add e2e/smoke workflows task by @jbedard in #229
- fix: correct bzl_library targets by @alexeagle in #231
- fix: remove deprecated incompatible_use_toolchain_transition flag by @benjaminp in #230
- chore: setup tools_telemetry 0.2.6 by @jbedard in #235
New Contributors
- @benjaminp made their first contribution in #230
Full Changelog: v0.22.1...v0.23.0