Need advice about which tool to choose?Ask the StackShare community!

Bazel

237
472
+ 1
124
Webpack

32.8K
22.3K
+ 1
750
Add tool

Bazel vs Webpack: What are the differences?

Bazel: 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; Webpack: A bundler for javascript and friends. A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders" modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

Bazel and Webpack are primarily classified as "Java Build" and "JS Build Tools / JS Task Runners" tools respectively.

"Fast" is the primary reason why developers consider Bazel over the competitors, whereas "Most powerful bundler" was stated as the key factor in picking Webpack.

Bazel and Webpack are both open source tools. Webpack with 49.8K GitHub stars and 6.27K forks on GitHub appears to be more popular than Bazel with 12.4K GitHub stars and 2.02K GitHub forks.

According to the StackShare community, Webpack has a broader approval, being mentioned in 2206 company stacks & 1338 developers stacks; compared to Bazel, which is listed in 11 company stacks and 7 developer stacks.

Decisions about Bazel and Webpack
Aleksandr Filatov
Contract Software Engineer - Microsoft · | 4 upvotes · 133.4K views
Why migrated?

I could define the next points why we have to migrate:

  • Decrease build time of our application. (It was the main cause).
  • Also jspm install takes much more time than npm install.
  • Many config files for SystemJS and JSPM. For Webpack you can use just one main config file, and you can use some separate config files for specific builds using inheritance and merge them.
See more

We mostly use rollup to publish package onto NPM. For most all other use cases, we use the Meteor build tool (probably 99% of the time) for publishing packages. If you're using Node on FHIR you probably won't need to know rollup, unless you are somehow working on helping us publish front end user interface components using FHIR. That being said, we have been migrating away from Atmosphere package manager towards NPM. As we continue to migrate away, we may publish other NPM packages using rollup.

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Bazel
Pros of Webpack
  • 27
    Fast
  • 19
    Deterministic incremental builds
  • 16
    Correct
  • 15
    Multi-language
  • 13
    Enforces declared inputs/outputs
  • 9
    High-level build language
  • 8
    Scalable
  • 5
    Multi-platform support
  • 4
    Sandboxing
  • 3
    Dependency management
  • 2
    Flexible
  • 2
    Windows Support
  • 1
    Android Studio integration
  • 308
    Most powerful bundler
  • 182
    Built-in dev server with livereload
  • 142
    Can handle all types of assets
  • 87
    Easy configuration
  • 21
    Laravel-mix
  • 4
    Overengineered, Underdeveloped
  • 2
    Webpack-Encore
  • 2
    Makes it easy to bundle static assets
  • 1
    Redundant
  • 1
    Better support in Browser Dev-Tools

Sign up to add or upvote prosMake informed product decisions

Cons of Bazel
Cons of Webpack
  • 3
    No Windows Support
  • 2
    Bad IntelliJ support
  • 1
    Poor windows support for some languages
  • 1
    Constant breaking changes
  • 1
    Learning Curve
  • 1
    Lack of Documentation
  • 12
    Hard to configure
  • 3
    No clear direction
  • 2
    Spaghetti-Code out of the box
  • 2
    SystemJS integration is quite lackluster
  • 2
    Loader architecture is quite a mess (unreliable/buggy)
  • 2
    Fire and Forget mentality of Core-Developers

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is Bazel?

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.

What is Webpack?

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders" modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Bazel?
What companies use Webpack?
See which teams inside your own company are using Bazel or Webpack.
Sign up for Private StackShareLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Bazel?
What tools integrate with Webpack?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

Mar 24 2021 at 12:57PM

Pinterest

GitJenkinsKafka+7
3
1762
GitJenkinsGroovy+4
4
1905
JavaScriptGitHubPython+42
52
20331
What are some alternatives to Bazel and Webpack?
Pants
Pants is a build system for Java, Scala and Python. It works particularly well for a source code repository that contains many distinct projects.
Ansible
Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible’s goals are foremost those of simplicity and maximum ease of use.
Buck
Buck encourages the creation of small, reusable modules consisting of code and resources, and supports a variety of languages on many platforms.
CMake
It is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of the user's choice.
Jenkins
In a nutshell Jenkins CI is the leading open-source continuous integration server. Built with Java, it provides over 300 plugins to support building and testing virtually any project.
See all alternatives