How to bundle external dependencies using gulp
<p>I'm trying to bundle external commonjs modules (react, react-dom) together with some plain ES5 files, like pollyfills.js.</p>

<p>I can bundle the external modules using browserify.require</p>

<pre><code>var externalBundler = browserify();
config.externalModules.forEach(externalBundler.bundle);
return externalBundler.bundle()
  .pipe(source("external.js"))
  .pipe(buffer())
  .pipe(sourcemaps.init({ debug: true, loadMaps: true }))
  .pipe(uglify())
  .on('error', gutil.log)
  .pipe(sourcemaps.write('./'))
  .pipe(gulp.dest('./dist/'));
</code></pre>

<p>and the other scripts using gulp.concat, however I struggle to put them toggether. </p>