lib/bundler.js
function (onlyMain) {
    codeList.forEach(function (pair) {
      var dom = pair[0]
        , file = pair[1]
        , basename = file.split('.')[0];
      if ((dom === 'app') !== onlyMain) {
        return;
      }
      var code = before(compile(join(o.domains[dom], file)));
      l.push(defineWrap(basename, dom, code));
    });
  }
function (onlyMain) {
    codeList.forEach(function (pair) {
      var dom = pair[0]
        , file = pair[1]
        , basename = file.split('.')[0];
      if ((dom === 'app') !== onlyMain) {
        return;
      }
      var code = before(compile(join(o.domains[dom], file)));
      l.push(defineWrap(basename, dom, code));
    });
  }
function ( onlyMain ) { codeList . forEach ( function ( pair ) { var dom = pair [ 0 ] , file = pair [ 1 ] , basename = file . split ( '.' ) [ 0 ] ; if ( ( dom === 'app' ) !== onlyMain ) { return ; } var code = before ( compile ( join ( o . domains [ dom ] , file ) ) ) ; l . push ( defineWrap ( basename , dom , code ) ) ; } ) ; }
6. harvest function splits code into app and non-app code and defineWraps
6 . harvest function splits code into app and non - app code and defineWraps