Repository navigation
v2.7.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_swc", version = "2.7.0")Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_swc",
sha256 = "d9e874e603a12b35c843f25ac30205c7e729b5c8e754af360d93a9ee2e442f14",
strip_prefix = "rules_swc-2.7.0",
url = "https://github.com/aspect-build/rules_swc/releases/download/v2.7.0/rules_swc-v2.7.0.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
- Changes by create-pull-request action by @github-actions[bot] in #340
- chore: remove unused aspect-cli config file by @jbedard in #341
- feat: use module Facts API to fetch swc versions by @jbedard in #332
- fix: remove path mapping support for actions also disabling sandboxing by @jbedard in #345
- ci: move linux and bazel version testing from gha to aw by @jbedard in #344
- ci: remove bazel6, add bazel9 testing by @jbedard in #346
- chore: use latest rules_nodejs for bazel 9.0.1 support by @jbedard in #349
- chore: fix mirror_release.sh to order releases correctly by @jbedard in #348
Full Changelog: v2.6.2...v2.7.0