feat: export `mergeConfig()` (#3143)

pull/3181/head
Jacob Hummer 1 year ago committed by GitHub
parent beecec16a8
commit a850786a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -186,7 +186,7 @@ async function resolveConfigExtends(
return resolved
}
function mergeConfig(a: UserConfig, b: UserConfig, isRoot = true) {
export function mergeConfig(a: UserConfig, b: UserConfig, isRoot = true) {
const merged: Record<string, any> = { ...a }
for (const key in b) {
const value = b[key as keyof UserConfig]

Loading…
Cancel
Save