react-starter-kit icon indicating copy to clipboard operation
react-starter-kit copied to clipboard

Which module bundler should I use?

Open koistya opened this issue 12 years ago • 13 comments

Browserify

img img img img npm npm img npm

Who's using React.js with Browserify?

  • KhanAcademy.org
  • AirBnb.com
  • SoundCloud.com

Webpack

img img img img npm npm img npm

Who's using React.js with Webpack?

  • Instagram.com

Good Read

koistya avatar Aug 29 '14 08:08 koistya

When I end up using browserify with gulp, I end up using many shims and plugins. It hurts more when you have to do transpiling or if you also end up using bower. Watchify if very fast too. However, I get the sense that browserify devs recommend using it as a cli tool, and if your fine with that it actually works quite well.

JasonGiedymin avatar Sep 15 '14 02:09 JasonGiedymin

Browserify has a very active community behind it, and bazillion plugins that form a rich ecosystem. If you want to use gulp + browserify you should take a look at https://github.com/hughsk/vinyl-source-stream.

yoshuawuyts avatar Oct 03 '14 23:10 yoshuawuyts

+1 to webpack. It's code-splitting and ability to incorporate multiple sources (e.g. bower, node, etc) is indispensable. It boasts a long list of loaders and plugins and intelligent caching for quick builds.

sloria avatar Nov 23 '14 01:11 sloria

@sloria You can do everything you said with browserify also, and when does one need to require a CSS file in his javascript file or an image?

It's like JSX, it worked and made sense for them (FB) doesn't mean it will work for everyone else.

I think both are great, so you might as well chose the one you like and stick with it. I personally us browserify because I started with this one and it has a big ecosystem.

radum avatar Feb 02 '15 18:02 radum

+webpack, you can have multiple entry point so you can split your js bundles, and load the necessary only when you needs them.

mauriyouth avatar Feb 09 '15 11:02 mauriyouth

@mauriyouth does it differ from what you can do with Browserify and factor-bundle?

koistya avatar Feb 09 '15 11:02 koistya

:+1: webpack

avevlad avatar Feb 15 '15 19:02 avevlad

+1 webpack

hekar avatar Apr 20 '15 03:04 hekar

Do I need Webpack or Browserify if I'm already using gulp? I'm trying to understand if I need any of these 2 if I'm using the react-starter-kit.

amit242 avatar Jul 19 '15 20:07 amit242

can somebody point me to some samples for using browserify with react using a MakeFile? Thanks in advance

Sunil6591 avatar Sep 15 '15 10:09 Sunil6591

What do you think about JSPM?

cosminnicula avatar Oct 06 '15 14:10 cosminnicula

+1 for jspm, not even a mention? :sob:

blackxored avatar Nov 25 '15 01:11 blackxored

I'm going to close this one as it's not a real issue or feature request. But feel free to continue the conversation on this thread. You're also welcome to participate in discussions on Gitter, Appear.in, or StackOverflow.

koistya avatar Feb 21 '16 08:02 koistya