diff --git a/lib/get-config.js b/lib/get-config.js index 1937c546db..24560876f0 100644 --- a/lib/get-config.js +++ b/lib/get-config.js @@ -34,9 +34,9 @@ module.exports = async (opts, logger) => { // For each plugin defined in a shareable config, save in `pluginsPath` the extendable config path, // so those plugin will be loaded relatively to the config file - Object.keys(extendsOpts).reduce((pluginsPath, option) => { + Object.entries(extendsOpts).reduce((pluginsPath, [option, value]) => { if (PLUGINS_DEFINITIONS[option]) { - castArray(extendsOpts[option]) + castArray(value) .filter(plugin => isString(plugin) || (isPlainObject(plugin) && isString(plugin.path))) .map(plugin => (isString(plugin) ? plugin : plugin.path)) .forEach(plugin => {