v2.1.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_swc", version = "2.1.0")
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_swc",
sha256 = "e1d22e74ba10eb12b74a6a9ef5e95f7e29bea260448c398fb4f58338562e1426",
strip_prefix = "rules_swc-2.1.0",
url = "https://github.com/aspect-build/rules_swc/releases/download/v2.1.0/rules_swc-v2.1.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
- fix: consider root dir for source maps paths by @randrei-adobe in #277
- perf: align utils funcs with latest from rules_ts by @jbedard in #278
- chore: mirror external releases by @jbedard in #280
- feat: upgrade default swc version to v1.7.40 by @jbedard in #281
- refactor: align js file extension logic with rules_ts by @jbedard in #286
New Contributors
- @randrei-adobe made their first contribution in #277
Full Changelog: v2.0.1...v2.1.0