text: 'use strict';
  
  var browserify  =  require('browserify');
  var bromote     =  require('bromote');
  var bconfig     =  require('bconfig');
  var PassThrough =  require('stream').PassThrough;
  
  var fs          =  require('fs');
  var path        =  require('path');
  
  var config = bconfig(require.resolve('./requirejs-config'));
  
  function build (debug) {
  
    var passThrough = new PassThrough();
  
    // no browserify-shim needed since no third party modules are pulled in from a vendor/file 
    var bify = browserify();
  
    bromote(bify, config.remote, function (err, gens) {
      if (err) return console.error(err);
  
      bify
        .require(config.entry, { entry: true })
        .bundle({ debug: debug })
        .pipe(passThrough);
    });
    return passThrough;
  }
  
  var bundlePath = path.join(__dirname, 'public', 'bundle.js');
  build(true).pipe(fs.createWriteStream(bundlePath, 'utf8'));
  