asia-weex-vue-render4light
Version:
Web renderer for weex project written in Vue DSL.
17 lines (14 loc) • 331 B
JavaScript
var path = require('path')
exports.resolve = function resolve (rel) {
return path.resolve(__dirname, '../', rel)
}
exports.extend = function extend(to, ...froms) {
froms.forEach(function (from) {
for (const key in from) {
if (from.hasOwnProperty(key)) {
to[key] = from[key]
}
}
})
return to
}