mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
24 lines
576 B
JavaScript
24 lines
576 B
JavaScript
|
(function(root) {
|
||
|
var unopinionate = {
|
||
|
selector: root.jQuery || root.Zepto || root.ender || root.$,
|
||
|
template: root.Handlebars || root.Mustache
|
||
|
};
|
||
|
|
||
|
/*** Export ***/
|
||
|
|
||
|
//AMD
|
||
|
if(typeof define === 'function' && define.amd) {
|
||
|
define([], function() {
|
||
|
return unopinionate;
|
||
|
});
|
||
|
}
|
||
|
//CommonJS
|
||
|
else if(typeof module.exports !== 'undefined') {
|
||
|
module.exports = unopinionate;
|
||
|
}
|
||
|
//Global
|
||
|
else {
|
||
|
root.unopinionate = unopinionate;
|
||
|
}
|
||
|
})(typeof window != 'undefined' ? window : global);
|