Bazel for Frontend: Introducing rules_js
Blog post from Aspect Build
Aspect has been developing support for the Bazel build tool within the frontend/JS ecosystem over the past five years, based initially on the internal workings of Node.js at Google. However, the initial approach faced several challenges, such as slow package manager installs, separate source and output folders complicating Node.js tooling, lack of workspace support, and performance issues related to npm package handling. To address these, Aspect introduced rules_js, which simplifies the build process by potentially needing to install only a single npm package in specific scenarios. The first beta release, v1.0.0-beta.0, includes rulesets for popular tools like TypeScript and Webpack, and Aspect encourages prototyping with these resources while providing a migration guide. They are preparing for a release of the final version and are actively engaging with the community and partners, such as Adobe and contributors from Rush.js and Google, to refine and enhance their offerings.