tasks/seajs_build.js
function ( value, index, array ) {
      if ( visited.hasOwnProperty(value) ) { return; }
      visited[value] = true;

      var deps = projectData.dependency[ value ];
      if ( !deps ) { return; }

      for ( var i = 0; i < deps.length; ++i ) {
        var depAbsPath = projectData.id2File[ deps[i] ];

        if ( !depAbsPath ) {
          grunt.fail.fatal("Can't find file when merging, the file might exist but it's not a Sea.js module : [ " + deps[i] + " ]" );
        }

        this.push( depAbsPath );
        reverse_dep_map[ depAbsPath ] = true;
      }
    }
function ( value, index, array ) {
      if ( visited.hasOwnProperty(value) ) { return; }
      visited[value] = true;

      var deps = projectData.dependency[ value ];
      if ( !deps ) { return; }

      for ( var i = 0; i < deps.length; ++i ) {
        var depAbsPath = projectData.id2File[ deps[i] ];

        if ( !depAbsPath ) {
          grunt.fail.fatal("Can't find file when merging, the file might exist but it's not a Sea.js module : [ " + deps[i] + " ]" );
        }

        this.push( depAbsPath );
        reverse_dep_map[ depAbsPath ] = true;
      }
    }
function ( value , index , array ) { if ( visited . hasOwnProperty ( value ) ) { return ; } visited [ value ] = true ; var deps = projectData . dependency [ value ] ; if ( ! deps ) { return ; } for ( var i = 0 ; i < deps . length ; ++ i ) { var depAbsPath = projectData . id2File [ deps [ i ] ] ; if ( ! depAbsPath ) { grunt . fail . fatal ( "Can't find file when merging, the file might exist but it's not a Sea.js module : [ " + deps [ i ] + " ]" ) ; } this . push ( depAbsPath ) ; reverse_dep_map [ depAbsPath ] = true ; } }
Finds out which file can be the entry point.
Finds out which file can be the entry point .