Check whether has babel dep resolve plugin in the given plugin list

@inner
@param {Array} plugins the plugin list
@return {boolean}
function hasBabelDepPlugin(plugins) {
    return plugins.some(item => {
        let pluginItem = item;
        if (Array.isArray(item)) {
            pluginItem = item[0];
        }

        if (typeof pluginItem === 'string') {
            return pluginItem === DEP_PLUGIN_NAME;
        }

        return pluginItem === programPlugins.resolveDep;
    });
}