Repository navigation
v2.6.1
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_swc", version = "2.6.1")Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_swc",
sha256 = "728db898660fbb9d90a947a415b12a2d3db77524b73cfda306844dcddf597852",
strip_prefix = "rules_swc-2.6.1",
url = "https://github.com/aspect-build/rules_swc/releases/download/v2.6.1/rules_swc-v2.6.1.tar.gz",
)
###################
# rules_swc setup #
###################
# Fetches the rules_swc 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_swc//swc:dependencies.bzl", "rules_swc_dependencies")
rules_swc_dependencies()
# Fetches a SWC cli from
# https://github.com/swc-project/swc/releases
# If you'd rather compile it from source, you can use rules_rust, fetch the project,
# then register the toolchain yourself. (Note, this is not yet documented)
load("@aspect_rules_swc//swc:repositories.bzl", "LATEST_SWC_VERSION", "swc_register_toolchains")
swc_register_toolchains(
name = "swc",
swc_version = LATEST_SWC_VERSION,
)
# To use rules_swc with bazel-lib 2.x, you must additionally register the coreutils toolchain.
load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")
register_coreutils_toolchains()What's Changed
- chore: provide mirror gha permission to write pull-requests by @jbedard in #328
- test: add rules_js v3 e2e test by @jbedard in #327
- test: update tests to pnpm 9+ by @jbedard in #330
- chore: remove use of aspect-cli via bazeliskrc by @jbedard in #329
- chore: mirror external releases by @jbedard in #331
Full Changelog: v2.6.0...v2.6.1