Skip to content

v0.16.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 22 Aug 21:25
· 204 commits to main since this release
596dfb6

WORKSPACE snippet:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_swc",
    sha256 = "7b192e437e1f9a63e640f4f4eadb9c9c9a9bfd5dfbc6c890664df34dcdd616fc",
    strip_prefix = "rules_swc-0.16.0",
    url = "https://github.com/aspect-build/rules_swc/archive/refs/tags/v0.16.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 pre-built Rust-node binding 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_VERSION", "swc_register_toolchains")

swc_register_toolchains(
    name = "swc",
    swc_version = LATEST_VERSION,
)

# Fetches a NodeJS interpreter, needed to run the swc CLI.
# You can skip this if you already register a nodejs toolchain.
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

nodejs_register_toolchains(
    name = "nodejs",
    node_version = DEFAULT_NODE_VERSION,
)

What's Changed

  • chore(deps): update dependency io_bazel_rules_go to v0.34.0 by @renovate in #60
  • chore(deps): update dependency rules_nodejs to v5.5.3 by @renovate in #69
  • chore: update to rules_js 1.0.0 by @gregmagolan in #72
  • Mirror latest version of swc by @jbedard in #74

New Contributors

Full Changelog: v0.15.0...v0.16.0