mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-09-28 06:55:25 +00:00
36 lines
733 B
JavaScript
36 lines
733 B
JavaScript
exports.interopDefault = function (a) {
|
|
return a && a.__esModule ? a : {default: a};
|
|
};
|
|
|
|
exports.defineInteropFlag = function (a) {
|
|
Object.defineProperty(a, '__esModule', {value: true});
|
|
};
|
|
|
|
exports.exportAll = function (source, dest) {
|
|
Object.keys(source).forEach(function (key) {
|
|
if (
|
|
key === 'default' ||
|
|
key === '__esModule' ||
|
|
Object.prototype.hasOwnProperty.call(dest, key)
|
|
) {
|
|
return;
|
|
}
|
|
|
|
Object.defineProperty(dest, key, {
|
|
enumerable: true,
|
|
get: function () {
|
|
return source[key];
|
|
},
|
|
});
|
|
});
|
|
|
|
return dest;
|
|
};
|
|
|
|
exports.export = function (dest, destName, get) {
|
|
Object.defineProperty(dest, destName, {
|
|
enumerable: true,
|
|
get: get,
|
|
});
|
|
};
|