Live data from Hacker News

If you write JavaScript tools or libraries, bundle your code before publishing

medium.com

1–10 of 25 posts

Re: If you write JavaScript tools or libraries, bundle your code before publishing

#2
Ok, this finally gave me a use case for webpack as opposed to gulp that I could appreciate, but then it introduced two new potential competitors in Rollup and JSPM, so there's still extra stuff to keep up with.

anyway I guess until it becomes industry practice to bundle everything I need to bundle stuff by myself that I will be using just to avoid this situation in the future (until it's fixed, but really I think bundle it all yourself sounds much more secure)

Re: If you write JavaScript tools or libraries, bundle your code before publishing

#4

Ok, this finally gave me a use case for webpack as opposed to gulp that I could appreciate, but then it introduced two new potential competitors in Rollup and JSPM, so there's still extra stuff to keep up with. anyway I guess until it becomes industry practice to bundle everything I need to bundle stuff by myself that I will be using just to avoid this situation in the future (until it's fixed, but really I think bun…

npm stats

  jspm 115,692 downloads in the last month
  rollup 95,038 downloads in the last month
  webpack 1,407,499 downloads in the last month
jspm I believe had a good thing going for a while but webpack has well and truly replaced them now.

Re: If you write JavaScript tools or libraries, bundle your code before publishing

#7
post #4

Ok, this finally gave me a use case for webpack as opposed to gulp that I could appreciate, but then it introduced two new potential competitors in Rollup and JSPM, so there's still extra stuff to keep up with. anyway I guess until it becomes industry practice to bundle everything I need to bundle stuff by myself that I will be using just to avoid this situation in the future (until it's fixed, but really I think bun…

npm stats jspm 115,692 downloads in the last month rollup 95,038 downloads in the last month webpack 1,407,499 downloads in the last month jspm I believe had a good thing going for a while but webpack has well and truly replaced them now.

you missed the biggest one:

  browserify 2,218,006 downloads in the last month
But my prediction is Rollup will take off in a big way at some point in the next 2 years. It's not quite stable enough yet, but it's just fundamentally better designed than everything else. Rollup is the only tool I'm aware of that properly exploits static analysis of ES6 module syntax. Every other bundler is full of hacks and moving parts, Rollup's codebase is clean and beautiful. It's already very good for bundling ES6 modular code, it's just still got some kinks when it comes to integrating people's CommonJS code. And I guess not enough people are actually using module syntax yet for Rollup to come into its own, which is a chicken and egg problem. It will get there though.

Until Rollup is stable enough, I recommend Browserify. In my opinion Webpack and JSPM both try to do too much and are too prescriptive about workflow. My team switched from Browserify to Webpack a few months ago, and I now find it a bit suffocating and slow.

Re: If you write JavaScript tools or libraries, bundle your code before publishing

#8
post #5

Is Browserify falling out of favor? I've only just recently started to bundle my stuff with it instead of gulp's concat.

No, Browserify is still quietly way out in front of everything else (in terms of npm downloads).

Re: If you write JavaScript tools or libraries, bundle your code before publishing

#9
post #4

Earlier quoted context omitted.

npm stats jspm 115,692 downloads in the last month rollup 95,038 downloads in the last month webpack 1,407,499 downloads in the last month jspm I believe had a good thing going for a while but webpack has well and truly replaced them now.

you missed the biggest one: browserify 2,218,006 downloads in the last month But my prediction is Rollup will take off in a big way at some point in the next 2 years. It's not quite stable enough yet, but it's just fundamentally better designed than everything else. Rollup is the only tool I'm aware of that properly exploits static analysis of ES6 module syntax. Every other bundler is full of hacks and moving parts,…

Webpack v2 also tries to use the static part of es6 modules (for DCE ?)

Re: If you write JavaScript tools or libraries, bundle your code before publishing

#10
Leaving aside all the advertisement and marketing.

JSPM -> sounds like a good idea until you try using it, and SystemJS is just sad. Its not the fault of the specs, its just that the creator is having difficulty with funding - as with any other good open source projects.

Webpack -> Slow, unstable and documentation is incomplete.

RollUp -> I am not going to listen to the author's comment on how awesome his product is -_-

I still think browserify is the only bundler out there that is sort of stablish.

I locked my browserify@4.0.0 for 3 years and recently moved on to browserify@9.0.0

Being in the JS world you need to be conservative these days - especially if you want to ship in time.

Post reply on HN