v2.0.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_swc", version = "2.0.0")
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_swc",
sha256 = "d63d7b283249fa942f78d2716ecff3edbdc10104ee1b9a6b9464ece471ef95ea",
strip_prefix = "rules_swc-2.0.0",
url = "https://github.com/aspect-build/rules_swc/releases/download/v2.0.0/rules_swc-v2.0.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,
)
What's Changed
- feat: upgrade to rules_js 2.0 by @gregmagolan in #253
- chore: bump to GHA actions/cache@v4 by @gregmagolan in #261
- chore: bump miminum dep to aspect_bazel_lib 2.7.6 by @gregmagolan in #262
- chore: bump to rules_js 2.0.0-rc1 and minimum aspect_bazel_lib 2.7.7 by @gregmagolan in #263
- chore: add --check_direct_dependencies to .bazelrc by @gregmagolan in #264
- chore: bump minimum rules_nodejs to 6.2.0 by @gregmagolan in #265
- fix: use latest rules_js gather_transitive_sources signature by @jbedard in #266
- Changes by create-pull-request action by @github-actions in #251
- chore: remove unneeded registration by @alexeagle in #268
- chore: bump rules_js dependency to 2.0 final by @alexeagle in #269
Full Changelog: v1.2.3...v2.0.0