function filterDependencies(file, dependencies, filter) {

    for (var i = dependencies.length - 1; i >= 0; i--) {

        var dependency = dependencies[i];

        // 绝对路径不用处理
        if (isAbsolute(dependency.raw)
            || (filter && filter(file, dependency))
        ) {
            dependencies.splice(i, 1);
        }

    }

}
function filterDependencies(file, dependencies, filter) {

    for (var i = dependencies.length - 1; i >= 0; i--) {

        var dependency = dependencies[i];

        
        if (isAbsolute(dependency.raw)
            || (filter && filter(file, dependency))
        ) {
            dependencies.splice(i, 1);
        }

    }

}
function filterDependencies ( file , dependencies , filter ) { for ( var i = dependencies . length - 1 ; i >= 0 ; i -- ) { var dependency = dependencies [ i ] ; // 绝对路径不用处理 if ( isAbsolute ( dependency . raw ) || ( filter && filter ( file , dependency ) ) ) { dependencies . splice ( i , 1 ) ; } } }
过滤一些不需要的依赖，通常在 correctDependencies 之后处理

@inner
@param {Object} file
@param {Array} dependencies
@param {Function} filter 返回 true 表示需要过滤
过滤一些不需要的依赖，通常在 correctDependencies 之后处理