From fe9e49d2f844a0df57de7b622956bb6243bdd526 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Thu, 29 Oct 2020 00:01:08 +0100 Subject: [PATCH] WIP --- src/util/resolveConfig.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/util/resolveConfig.js b/src/util/resolveConfig.js index 7b6c9c447811..4c23e7104b75 100644 --- a/src/util/resolveConfig.js +++ b/src/util/resolveConfig.js @@ -7,6 +7,8 @@ import map from 'lodash/map' import get from 'lodash/get' import uniq from 'lodash/uniq' import toPath from 'lodash/toPath' +import head from 'lodash/head' +import isPlainObject from 'lodash/isPlainObject' import negateValue from './negateValue' import { corePluginList } from '../corePluginList' import configurePlugins from './configurePlugins' @@ -67,7 +69,13 @@ function mergeThemes(themes) { } } -function mergeExtensionCustomizer(_merged, value) { +function mergeExtensionCustomizer(merged, value) { + // When we have an array of objects, we do want to merge it + if (Array.isArray(merged) && isPlainObject(head(merged))) { + return merged.concat(value) + } + + // Override arrays (for example for font-families, box-shadows, ...) if (Array.isArray(value)) return value }