feat: use rollup to build component

This commit is contained in:
陈嘉涵
2017-08-12 22:33:13 +08:00
parent 6e35dfa177
commit 4555d82c8e
13 changed files with 665 additions and 49 deletions

View File

@@ -0,0 +1,15 @@
export default function(target, ...sources) {
for (let i = 0; i < sources.length; i++) {
const source = sources[i] || {};
for (const prop in source) {
if (source.hasOwnProperty(prop)) {
const value = source[prop];
if (value !== undefined) {
target[prop] = value;
}
}
}
}
return target;
};