v1.0.2
Pre-release
Pre-release
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_swc", version = "1.0.2")
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_swc",
sha256 = "17187c15710ac133a656c35c2f768f3cfa925888d26ed93a9fe9fde69a860aab",
strip_prefix = "rules_swc-1.0.2",
url = "https://github.com/aspect-build/rules_swc/releases/download/v1.0.2/rules_swc-v1.0.2.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
- ci: enable buildifier check on ci by @jbedard in #201
- chore: disable buildifier on windows by @jbedard in #203
- chore: bump rules_js dep to 1.29.2 to pickup Windows fix by @gregmagolan in #205
Full Changelog: v1.0.1...v1.0.2