title: Browserify-shim does not resolve dependencies
body: <p>I want to combine bootstrap.js &amp; jquery.js (both installed with npm) into vendors.js file but still be able to use jquery by calling <code>require('$')</code>.
  So I created gulp task:</p>
  
  <pre><code>'use strict';
  
  var gulp = require('gulp'), 
  helpers = require('./../utilities/gulp-helpers'),
  source = require('vinyl-source-stream'),
  plumber = require('gulp-plumber'),
  browserifyShim = require('browserify-shim'),
  browserify = require('browserify');
  
  gulp.task('bulld-frontend:vendors', function(done) {
   var build = browserify({
    entries: [
    'jquery',
    'bootstrap'
    ]
  });
  
   build
   .transform(browserifyShim)
   .require('jquery')
   .bundle()
   .pipe(source('vendors.js'))
   .pipe(gulp.dest('build/public/js'))
   .pipe(plumber({
    errorHandler: helpers.logError
  }));
  
   done();
  });
  </code></pre>
  
  <p>then added configuration to <strong>package.json</strong></p>
  
  <pre><code>"browser": {
      "bootstrap": "./node_modules/bootstrap/dist/js/bootstrap.js",
      "jquery": "./node_modules/jquery/dist/jquery.js"
    },
    "browserify-shim": "./gulp/utilities/shim-config.js",
  }, 
  </code></pre>
  
  <p>and finally configure my shims in <strong>gulp/utilities/shim-config.js</strong></p>
  
  <pre><code>'use strict';
  
  module.exports = {
    'jquery'    :  '$',
    'bootstrap' :  { 'depends': { 'jquery': 'jQuery'} }
  };
  </code></pre>
  
  <p>but after running task I receive file, where bootstrap goes prior to jquery, so it throws <code>Uncaught Error: Bootstrap's JavaScript requires jQuery</code></p>
  
  <p>I added </p>
  
  <pre><code>"browserify": {
      "transform": [
          "browserify-shim"
      ]
  }
  </code></pre>
  
  <p>to <strong>package.json</strong> but it didn't help. It seems to me, that browserify never applies this transformation, because if I replace <code>.transform(browserifyShim)</code> with <code>.transform(function() { throw new Error("OLOLO"); })</code> task is still working. </p>