🤔 What is a Bundle Manager?

To put in simple words, a bundle manager lets you use all of your project dependencies in the browser. It can also perform some other tasks like minifying, linting, testing, etc. Browserify and Webpack are the names of bundle managers for JavaScript.

WordPress used to have Browserify to maintain its JS components. Webpack replaced it last week.

Here are some of the qualities of Webpack which made it a more natural choice.

✔︎ Pros of Using Webpack

Webpack is easy to implement.

Webpack does not require automation scripts like Gulp or Grunt.

It has a single configuration file for the entire build process.

Webpack provides automation tasks like minification out of the box.

It also supports live reloading.

And it does all of these tasks without requiring help from the outside scripts.

Maedah Batool is a WordPress Core Contributor, Technical Dev Manager and a part-time Journalist. She created a tech-training startup called FinkTanks where she has taught 1,000+ girls how to code with WordPress.