Closed justvanrossum closed 1 year ago
Should check also: https://vitejs.dev
It's the most modern bundler option and seems very promising.
After a bit of research, I can share my thoughts on the choice of technology here. Have in mind, my experience is limited and it is mainly revolving around huge production builds with Webpack.
Main technologies of interest for us seem to be: – Rollup.js https://rollupjs.org/introduction/#the-why – Vite.js https://vitejs.dev/guide/why.html – Webpack – esbuild (written in Go) – Parcel (similar to Vite.js)
TL;DR Long story short, we will have to make our priorities clear. For me the battle seems to be between Vite.js and Rollup.js
Here is a more hands-on overview of Rollup vs. Parcel vs. Webpack https://betterprogramming.pub/the-battle-of-bundlers-6333a4e3eda9
As my 2c, we've been using Webpack for several projects and it works fine but is quite slow. Recently we started a new project with Vite and it's much snappier (a second or two compared to about a minute for Webpack)
All we need to do is bundle the non-dev part our local node_modules
into something that we can import in the browser. Either as a folder of importable items, or even as a single file.
I can't see the forest for the trees from all those big packages out there.
Bower is super deprecated, I wouldn't look into it for a new project.
Bower is super deprecated, I wouldn't look into it for a new project.
I confirm it, I used Bower
many years ago (then switched to npm
+ Gulp.js
).