v0.14.0
Pre-release
Pre-release
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_webpack",
sha256 = "ff7746cd5c7e8ef32d8fbccc720e37c5ec9054fbe705f3576013dbaa1fb5ad40",
strip_prefix = "rules_webpack-0.14.0",
url = "https://github.com/aspect-build/rules_webpack/releases/download/v0.14.0/rules_webpack-v0.14.0.tar.gz",
)
#######################
# rules_webpack setup #
#######################
# Fetch the Bazel module dependencies
load("@aspect_rules_webpack//webpack:dependencies.bzl", "rules_webpack_dependencies")
rules_webpack_dependencies()
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.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
- chore: update to Bazel 6.3.2 and Aspect CLI 5.7.2 by @gregmagolan in #122
- add supports_webpack and run_js_devserver example (#125) by @thesayyn in #128
- fix: clear webpack asset emit cache afterEmit by @jbedard in #127
- fix: correct worker cache key by @jbedard in #129
- fix(worker): fail when build result hasErrors() by @jbedard in #130
- feat: add webpack v4 support by @jbedard in #131
- fix(worker): workaround webpack4 fs write caching by @jbedard in #133
- chore: update bcr maintainer list by @kormide in #132
- chore: BCR testing on Bazel 6 and 7 by @alexeagle in #138
- feat: import toolchains to use for copy actions by @seh in #135
New Contributors
Full Changelog: v0.13.0...v0.14.0