title: Integrating React to a build flow with module transpilation with Babel
body: <p>I am currently having trouble with module transpilation with babel.</p>
  
  <p>when I am transpiling code to AMD modules with babel, I can make it work in browser by including requirejs library. But when I try to introduce react to this equation we are experiencing some troubles, as react does not play nice with AMD. we are having mismatch errors (<a href="http://requirejs.org/docs/errors.html#mismatch" rel="nofollow">http://requirejs.org/docs/errors.html#mismatch</a>) cause react is loaded synchronously in a vendor.js file.</p>
  
  <p>if I tried the other way around, using commonjs as it is the default module spec that babel uses, I have no idea how to make it work in the browser.  without a library like requirejs in the former example, browser is giving errors like "exports not defined". tried to include some stuff like es6-module-loader or babel browerser polyfill, but without much success.</p>
  
  <p>ps: build flow is using broccolijs.</p>