mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-05-20 21:19:52 +08:00
10 lines
304 B
JavaScript
10 lines
304 B
JavaScript
import { deepmerge, lodash } from '@umijs/utils';
|
|
|
|
|
|
export default ({ defaultConfig, config }) => {
|
|
if (lodash.isPlainObject(defaultConfig) && lodash.isPlainObject(config)) {
|
|
return deepmerge(defaultConfig, config);
|
|
}
|
|
return typeof config !== 'undefined' ? config : defaultConfig;
|
|
};
|