diff --git a/src/util/resolveConfig.js b/src/util/resolveConfig.js index 3a45552328f9..a9590aafe7eb 100644 --- a/src/util/resolveConfig.js +++ b/src/util/resolveConfig.js @@ -206,10 +206,9 @@ function resolveFunctionKeys(object) { }) return Object.keys(object).reduce((resolved, key) => { - return { - ...resolved, - [key]: isFunction(object[key]) ? object[key](resolvePath, configUtils) : object[key], - } + resolved[key] = isFunction(object[key]) ? object[key](resolvePath, configUtils) : object[key] + + return resolved }, {}) }