DEV Community

Cover image for What's your fav bundler: Rollup, Parcel or Webpack?
Madza
Madza Subscriber

Posted on

What's your fav bundler: Rollup, Parcel or Webpack?

A bundler is a tool that recursively follows all imports from the entry point of your app and bundles them up into a single file.

Bundlers can also minify your files by removing unnecessary white spaces, newlines, and comments without affecting the functionality.

The most popular bundlers are Rollup, Parcel and Webpack. Which one is your favorite bundler and why?

Latest comments (23)

Collapse
 
raguay profile image
Richard Guay

Right now Rollup because it is the packager that Svelte has standardized on. But, they are talking of moving to Snowpak.

Collapse
 
ibrahimkamal profile image
Ibrahim Kamal

parcel & webpack

Collapse
 
ndaidong profile image
Dong Nguyen

Just familiar with Rollup + Terser, but I will give esbuild a try.

Collapse
 
puruvj profile image
PuruVJ

Snowpack. Integrates with Rollup and webpack in prod build

Collapse
 
tbroyer profile image
Thomas Broyer

I REALLY like that the entrypoint for Parcel can be your HTML page. I see html-webpack-plugin as an afterthought. I'd switch to Rollup anytime if it could use HTML as the entrypoint!

Collapse
 
medsaad profile image
Ahmed Said-ahmed

Are there a good resource where I can learn how can I switch to a different bundler than the default one?

Collapse
 
codefinity profile image
Manav Misra

ClichΓ© answer: 'Right tool for right job.'

M NS πŸ˜• about Rollup, but for 'quick' 'vanilla SPA' or very simple React, Parcel.
For most other things, Webpack.

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€

Bundling is sooo, HTTP1.1 but nobody seems to have gotten the memo. πŸ˜…

Collapse
 
shadowtime2000 profile image
shadowtime2000

Rollup for packages because I can export to CJS, ES, UMD, and IIFE. I use Webpack basically only in CRA where I can't customize it and I use Parcel for small projects.

Collapse
 
mainendra profile image
Mainendra

Snowpack sounds promising.

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€

It's pretty good, more of an unbundler which should perform better than a bundler on HTTP2 and upwards.