Skip to content

v0.16.0-rc0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 22 May 01:20
· 8 commits to main since this release
eb5a6de

Important

This release requires requires rules_js 2.x. It is not compatible with rules_js 1.x. rules_js 2 is currently in RC: https://github.com/aspect-build/rules_js/releases/tag/v2.0.0-rc0

WORKSPACE snippet:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_webpack",
    sha256 = "64c0900d2b69ca6fbd01ca7cdfaefcdaf4a2ba74c342e3812f9ac37e29309735",
    strip_prefix = "rules_webpack-0.16.0-rc0",
    url = "https://github.com/aspect-build/rules_webpack/releases/download/v0.16.0-rc0/rules_webpack-v0.16.0-rc0.tar.gz",
)

#######################
# rules_webpack setup #
#######################

# Fetch the Bazel module dependencies

load("@aspect_rules_webpack//webpack:dependencies.bzl", "rules_webpack_dependencies")

rules_webpack_dependencies()

# Fetch and register a nodejs interpreter, if you haven't already

load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")

rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)

load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")

npm_translate_lock(
    name = "v4-npm",
    npmrc = "//:.npmrc",
    pnpm_lock = "//v4:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
)

npm_translate_lock(
    name = "v5-npm",
    npmrc = "//:.npmrc",
    pnpm_lock = "//v5:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
)

load("@v4-npm//:repositories.bzl", v4_npm_repositories = "npm_repositories")
load("@v5-npm//:repositories.bzl", v5_npm_repositories = "npm_repositories")

v4_npm_repositories()

v5_npm_repositories()

To use rules_webpack with bazel-lib 2.0, you must additionally register the coreutils toolchain.

load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")
register_coreutils_toolchains()

What's Changed

Full Changelog: v0.15.0...v0.16.0-rc0