packages/okam-build/lib/processor/helper/init-babel.js
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;
    });
}
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;
    });
}
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 ; } ) ; }
Check whether has babel dep resolve plugin in the given plugin list

@inner
@param {Array} plugins the plugin list
@return {boolean}
Check whether has babel dep resolve plugin in the given plugin list