back

by Lammy·6y ago·view on hn ↗
What are you using instead of Webpack? I have a very old personal project still using Webpack 2 and would love a simpler alternative that isn’t just downloading library dist files and checking them in to my project repo. I don’t even need babel or minification or any of that, just simple dependency version management and fetching.
1 comments
I switched to Rollup for a project and liking it so far, also less dependencies:

Here's a comparison of popular bundlers using a visualization tool I found online:

Webpack - https://npm.anvaka.com/#/view/2d/webpack

Parcel - https://npm.anvaka.com/#/view/2d/parcel

Rollup - https://npm.anvaka.com/#/view/2d/rollup

Granted this only covers the initial package for each of these, there are usually a bunch of extra plugins or cli packages that you'll need to work with each of these but I also found the dependency tree of each of the added Rollup plugins to be less than the other 2.

here's rollup-plugin-babel: https://npm.anvaka.com/#/view/2d/rollup-plugin-babel

I'm wedging together Vue components by abusing the Go templating engine at the moment.

But it's not satisfactory because I can't unit test my components properly, or minify/obfuscate properly.

I'm looking at browserify to help with that, but that's going to break my whole build system so I need to find the appropriate time to do that.

Or there's Elm... I keep looking at Elm and wondering if that would solve a lot of these problems...

Rollup looks like it would fit my needs perfectly. Thank you!