19 lines
539 B
JavaScript
19 lines
539 B
JavaScript
|
'use strict';
|
||
|
|
||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||
|
|
||
|
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
|
||
|
|
||
|
function merge(target, source) {
|
||
|
Object.keys(source).forEach(function (key) {
|
||
|
if (source[key] instanceof Object) {
|
||
|
if (target[key]) {
|
||
|
Object.assign(source[key], merge(target[key], source[key]));
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, target), source);
|
||
|
}
|
||
|
|
||
|
exports.default = merge;
|