docs: function getBundle(entry, cfg) {
    return getPackage(entry).then(function (data) {
  
      var entry = path.dirname(data.path);
      var pkg = data.pkg;
      var titaniumManifest = pkg.titaniumManifest || {};
  
      var moduleid = titaniumManifest.moduleid || pkg.name;
  
      var opts = pkg.titaniumifier || pkg.npmifier || pkg.browserify || {};
  
      opts.extensions || (opts.extensions = [ '.js', '.json' ]);
      opts.transforms || (opts.transforms = []);
      opts.ignores || (opts.ignores = []);
      opts.externals || (opts.externals = []);
  
      var addExternals = addDeps.bind(null, opts.externals);
  
      addExternals(pkg.peerDependencies);
      addExternals(pkg.nativeDependencies);
  
      if (cfg.noDependencies) {
        addExternals(pkg.dependencies);
        addExternals(pkg.devDependencies);
        addExternals(pkg.optionalDependencies);
      }
  
      opts.ignoreMissing = !!opts.ignoreMissing;
  
      var b = browserify({
        basedir: entry,
        builtins: BUILTINS,
        debug: cfg.debug,
        extensions: opts.extensions,
        externalRequireName: cfg.exportRequire ? 'module.exports' : undefined,
        insertGlobalVars: GLOBAL_VARS,
        ignoreMissing: false,
        standalone: (cfg.standalone === false) ? undefined : moduleid,
        prelude: PRELUDE_SRC,
        preludePath: PRELUDE_PATH
      });
  
      b.plugin(fixResolver, {
        resolve: titaniumResolve
      });
  
      if (Array.isArray(opts.transforms)) {
        opts.transforms.forEach(function (transform) {
          b.transform(transform);
        });
      }
      else {
        Object.keys(opts.transforms).forEach(function (transform) {
          b.transform(transform, opts.transforms[ transform ]);
        });
      }
  
      opts.ignores.forEach(function (ignore) {
        b.ignore(ignore);
      });
  
      opts.externals.forEach(function (external) {
        b.exclude(external);
      });
  
      if (cfg.useTitaniumPlatformResolve) {
        TODO;
        /*b.transform(titaniumPlatformResolve.createTransform({
          platforms: [ build.platformName ],
          extensions: opts.extensions
        }));*/
      }
  
      return {
        entry: entry,
        pkg: pkg,
        opts: opts,
        bundle: b
      };
    });
  }