v0.20.0-alpha.0
Pre-release
Pre-release
github-actions
released this
10 May 06:05
·
15 commits
to main
since this release
Important
rules_js maintainers are working towards a rules_js 2.0 RC release. Breakings changes in the underlying provider API require that all downstream rulesets have major releases such as this one. We don't recommended upgrading to this alpha release. For more information on the rules_js 2.0 release see the tracking issue aspect-build/rules_js#1671.
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_esbuild", version = "0.20.0-alpha.0")
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_esbuild",
sha256 = "6c20c49c9c41095812c8ff976d158cfb7888e97f0d85decbb01ab39bbc690bb7",
strip_prefix = "rules_esbuild-0.20.0-alpha.0",
url = "https://github.com/aspect-build/rules_esbuild/releases/download/v0.20.0-alpha.0/rules_esbuild-v0.20.0-alpha.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
- Changes by create-pull-request action by @github-actions in #202
- chore: misc cleanup by @gregmagolan in #203
- chore: bump to Bazel 7.1.1 by @gregmagolan in #204
- chore: don't cancel concurrent main builds by @gregmagolan in #205
- chore: cleanup deps in MODULE.bazel by @gregmagolan in #206
Full Changelog: v0.19.0...v0.20.0-alpha.0