4.6.0
To update:
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "ddb78717b802f8dd5d4c01c340ecdc007c8ced5c1df7db421d0df3d642ea0580",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.6.0/rules_nodejs-4.6.0.tar.gz"],
)
or for the core package
http_archive(
name = "rules_nodejs",
sha256 = "005c59bf299d15d1d9551f12f880b1a8967fa883654c897907a667cdbb77c7a6",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.6.0/rules_nodejs-core-4.6.0.tar.gz"],
)
and update @bazel
-scoped npm packages.
New Feature: faster TypeScript transpiles
We've added an attribute to ts_project
called transpiler
which lets you swap out which program is used to generate the JavaScript outputs, while still using tsc
for type-checking. This pattern lets you decouple type-checking from your development loop, enabling an order of magnitude faster rebuilds, without having to create lots of boilerplate in your BUILD.bazel configs.
As an example, we've been using SWC in some large codebases and saw ~20x speedup in transpilation time. Here's a tiny working example
See the documentation for the transpiler attribute for more info on this.
Thanks to our friends at EngFlow for sponsoring this work!
What's Changed
- Update NodeJS Versions by @mattem in #3149
- Update esbuild versions by @mattem in #3158
- Update esbuild versions by @mattem in #3161
- Update NodeJS Versions by @mattem in #3154
- fix: bump jasmine-reporters to 2.5.0 by @harsha509 in #3180
- Update esbuild versions by @mattem in #3179
- fix(builtin): js_library: propagate all default_runfiles by @alexeagle in #3183
- Update grpc-web and protobuf dependencies by @ronilichtman in #3185
- feat(typescript): allow alternative transpilers by @alexeagle in #3134
- Revert "fix(builtin): add transitive typings to runfiles provider pro… by @alexeagle in #3189
- fix(typescript): ts_project transpiler produces js_library by @alexeagle in #3187
New Contributors
- @harsha509 made their first contribution in #3180
- @ronilichtman made their first contribution in #3185
Full Changelog: 4.5.1...4.6.0