DEV Community

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

yoursunny profile image
Junxiao Shi • Edited

I'm not supposed to pick favorites.

My NDNts library is packaged as ES Modules only, and contains no CommonJS, but I do use CommonJS packages in dependencies. I tried all three bundlers with my library.

  • webpack 4.x is easy to work with. Everything compiles correctly.
  • webpack 5.x is not working at the moment. It's unhappy when I import CommonJS from ES Modules.
  • Parcel 1.x is working, and it can start with HTML. However, documentation is scarce.
  • Parcel 2.x is messy and not working.
  • Rollup worked once but needs too many hacks.