Skip to content

2.2.0

Compare
Choose a tag to compare
@alexeagle alexeagle released this 10 Sep 17:15
· 1694 commits to stable since this release

Upgrade with

http_archive(
    name = "build_bazel_rules_nodejs",
    sha256 = "4952ef879704ab4ad6729a29007e7094aef213ea79e9f2e94cbe1c9a753e63ef",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/2.2.0/rules_nodejs-2.2.0.tar.gz"],
)

and remember to update your @bazel-scoped npm dependencies.

Features

  • new public API: js_library which finally fixes our story for local dependencies with package names - see the new documentation (1e357fd), closes #149 #1771 - thanks to @mistic for contributing the needed logic changes
  • To fix the hardest migration problem with the 2.0 release, we added back a way to link the workspace root into your node_modules, and added it to nodejs_binary, npm_package_bin, rollup_bundle, ts_project & ts_library (4dcb37f)

Bug Fixes

  • builtin: don't set --preserve-symlinks-main by default (#2176) (df18c61)
  • builtin: fix bazel coverage masking test failures (3d0d1f7)
  • rollup: allow config files to override default onwarn method (0b80f6a), closes #2084