mirror of https://github.com/lukechilds/rollup.git
6 changed files with 136 additions and 4 deletions
@ -1,5 +1,28 @@ |
|||
define(function () { 'use strict'; |
|||
|
|||
|
|||
function augment ( x ) { |
|||
var prop, source; |
|||
|
|||
}); |
|||
var i = arguments.length; |
|||
var sources = Array( i - 1 ); |
|||
while ( i-- ) { |
|||
sources[i-1] = arguments[i]; |
|||
} |
|||
|
|||
while (source = sources.shift()) { |
|||
for (prop in source) { |
|||
if (hasOwn.call(source, prop)) { |
|||
x[prop] = source[prop]; |
|||
} |
|||
} |
|||
} |
|||
|
|||
return x; |
|||
} |
|||
|
|||
function x () {} |
|||
augment( x.prototype ); |
|||
|
|||
return x; |
|||
|
|||
}); |
@ -1 +1,26 @@ |
|||
'use strict'; |
|||
|
|||
function augment ( x ) { |
|||
var prop, source; |
|||
|
|||
var i = arguments.length; |
|||
var sources = Array( i - 1 ); |
|||
while ( i-- ) { |
|||
sources[i-1] = arguments[i]; |
|||
} |
|||
|
|||
while (source = sources.shift()) { |
|||
for (prop in source) { |
|||
if (hasOwn.call(source, prop)) { |
|||
x[prop] = source[prop]; |
|||
} |
|||
} |
|||
} |
|||
|
|||
return x; |
|||
} |
|||
|
|||
function x () {} |
|||
augment( x.prototype ); |
|||
|
|||
module.exports = x; |
@ -0,0 +1,24 @@ |
|||
function augment ( x ) { |
|||
var prop, source; |
|||
|
|||
var i = arguments.length; |
|||
var sources = Array( i - 1 ); |
|||
while ( i-- ) { |
|||
sources[i-1] = arguments[i]; |
|||
} |
|||
|
|||
while (source = sources.shift()) { |
|||
for (prop in source) { |
|||
if (hasOwn.call(source, prop)) { |
|||
x[prop] = source[prop]; |
|||
} |
|||
} |
|||
} |
|||
|
|||
return x; |
|||
} |
|||
|
|||
function x () {} |
|||
augment( x.prototype ); |
|||
|
|||
export default x; |
@ -0,0 +1,28 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
|
|||
function augment ( x ) { |
|||
var prop, source; |
|||
|
|||
var i = arguments.length; |
|||
var sources = Array( i - 1 ); |
|||
while ( i-- ) { |
|||
sources[i-1] = arguments[i]; |
|||
} |
|||
|
|||
while (source = sources.shift()) { |
|||
for (prop in source) { |
|||
if (hasOwn.call(source, prop)) { |
|||
x[prop] = source[prop]; |
|||
} |
|||
} |
|||
} |
|||
|
|||
return x; |
|||
} |
|||
|
|||
function x () {} |
|||
augment( x.prototype ); |
|||
|
|||
return x; |
|||
|
|||
})(); |
@ -0,0 +1,32 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
|||
typeof define === 'function' && define.amd ? define(factory) : |
|||
global.myBundle = factory(); |
|||
}(this, function () { 'use strict'; |
|||
|
|||
function augment ( x ) { |
|||
var prop, source; |
|||
|
|||
var i = arguments.length; |
|||
var sources = Array( i - 1 ); |
|||
while ( i-- ) { |
|||
sources[i-1] = arguments[i]; |
|||
} |
|||
|
|||
while (source = sources.shift()) { |
|||
for (prop in source) { |
|||
if (hasOwn.call(source, prop)) { |
|||
x[prop] = source[prop]; |
|||
} |
|||
} |
|||
} |
|||
|
|||
return x; |
|||
} |
|||
|
|||
function x () {} |
|||
augment( x.prototype ); |
|||
|
|||
return x; |
|||
|
|||
})); |
Loading…
Reference in new issue