kriasoft/react-starter-kit

Which module bundler should I use?

koistya opened this issue · 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

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.

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.

+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 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.

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

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

👍 webpack

+1 webpack

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.

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

What do you think about JSPM?

+1 for jspm, not even a mention? 😭

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.