v2.0.0-alpha.0
Pre-release
Pre-release
github-actions
released this
10 May 06:07
·
20 commits
to main
since this release
Important
rules_js maintainers are working towards a rules_js 2.0 RC release. Breakings changes in the underlying provider API require that all downstream rulesets have major releases such as this one. We don't recommended upgrading to this alpha release. For more information on the rules_js 2.0 release see the tracking issue aspect-build/rules_js#1671.
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_swc", version = "2.0.0-alpha.0")
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_swc",
sha256 = "65d779e7a0956f2ef754e56769766cd7b5af28f4ac3fd146d6673c0779a250ed",
strip_prefix = "rules_swc-2.0.0-alpha.0",
url = "https://github.com/aspect-build/rules_swc/releases/download/v2.0.0-alpha.0/rules_swc-v2.0.0-alpha.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
- Changes by create-pull-request action by @github-actions in #246
- Changes by create-pull-request action by @github-actions in #247
- Changes by create-pull-request action by @github-actions in #249
- chore: bump to Bazel 7 by @gregmagolan in #254
- chore: update GHA CI to latest pattern for testing Bazel 6/7, bzlmod on/off, linux/darwin/windows by @gregmagolan in #257
- chore: bump to latest stardoc by @gregmagolan in #256
- chore: misc cleanup by @gregmagolan in #258
- chore: don't cancel concurrent main builds by @gregmagolan in #259
Full Changelog: v1.2.2...v2.0.0-alpha.0