Need advice about which tool to choose?Ask the StackShare community!
Bazel vs Webpacker: What are the differences?
Developers describe Bazel as "Correct, reproducible, fast builds for everyone". Bazel is a build tool that builds code quickly and reliably. It is used to build the majority of Google's software, and thus it has been designed to handle build problems present in Google's development environment. On the other hand, Webpacker is detailed as "Use Webpack to manage app-like JavaScript modules in Rails (by Rails)". Webpacker makes it easy to use the JavaScript preprocessor and bundler Webpack to manage application-like JavaScript in Rails. It coexists with the asset pipeline, as the purpose is only to use Webpack for app-like JavaScript, not images, css, or even JavaScript Sprinkles (that all continues to live in app/assets).
Bazel belongs to "Java Build Tools" category of the tech stack, while Webpacker can be primarily classified under "JS Build Tools / JS Task Runners".
Bazel and Webpacker are both open source tools. Bazel with 12.4K GitHub stars and 2.03K forks on GitHub appears to be more popular than Webpacker with 4.29K GitHub stars and 894 GitHub forks.
According to the StackShare community, Bazel has a broader approval, being mentioned in 11 company stacks & 7 developers stacks; compared to Webpacker, which is listed in 7 company stacks and 5 developer stacks.
Pros of Bazel
- Fast28
- Deterministic incremental builds20
- Correct17
- Multi-language16
- Enforces declared inputs/outputs14
- High-level build language10
- Scalable9
- Multi-platform support5
- Sandboxing5
- Dependency management4
- Windows Support2
- Flexible2
- Android Studio integration1
Pros of Webpacker
Sign up to add or upvote prosMake informed product decisions
Cons of Bazel
- No Windows Support3
- Bad IntelliJ support2
- Poor windows support for some languages1
- Constant breaking changes1
- Learning Curve1
- Lack of Documentation1