3.2.0
Upgrade with:
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "fcc6dccb39ca88d481224536eb8f9fa754619676c6163f87aa6af94059b02b12",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.2.0/rules_nodejs-3.2.0.tar.gz"],
)
and update your @bazel
-scoped npm dependencies to match.
Features
multi-linker
Previously we restricted a given Node program under Bazel to get all dependencies from a single node_modules
tree, which in practice meant that all monorepo dependencies had to go in the root package.json
file. This is now fixed! A target can depend on multiple, so long as the package_path
attribute is set on yarn_install/npm_install
in the WORKSPACE
. (2c2cc6e)
@bazel/esbuild
We now support a custom rule to use the extremely fast bundler esbuild (e7e5286)
coverage
add coverage all: true support (8386b97)
Bug Fixes
- multi-linker linking when only output files in sandbox (ebb9481)
- builtin: fix coverage source file paths (ae4ec78)
- docs: fix formatting of nodejs_binary#chdir (1caced8)
- docs: fix regex that replaces //packages with @bazel (c31c0b6)
- docs: version selector shows 3.x (38f4f78)
- typescript: allow up to typescript 4.2, add tests for 3.7-4.1 (ea168a7)
- typescript: fixed build for external ts_project targets (c89e0aa)
- version number not edited after release candidate (ac2bb62)