unjs / defu

🌊 Assign default properties recursively
MIT License
1.06k stars 22 forks source link

Allow two way function merger #97

Open pi0 opened 1 year ago

pi0 commented 1 year ago

Currently function merger is only appied only if (defaults) has the function merger functionality however it is sometimes usable to also support merger for the input config. (https://github.com/nuxt/nuxt/pull/21462#issuecomment-1582871733)

Note: This behavior was for performance reasons. We might find a workaround directly from function merger custom export (or a new export to avoid breaking changes)