I did something similar a year ago or so.
Juho Vepsäläinen
1

Yeah, I knew of it, and in fact I’ve even used it for a while! I forgot its name, that’s why it didn’t land in the “Prior Art” section of the README — I’ve added it there now. However I found it somewhat limiting, then decided to switch to using the array and object destructuring (like this), but this often turned out less than pretty. I’ve ended up designing Easy Webpack, so you could say webpack-merge was a direct inspiration for it.