Last active
December 28, 2015 10:49
-
-
Save davidhellsing/7488964 to your computer and use it in GitHub Desktop.
Module prefix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(a, i, n, o) { | |
n = i.length && typeof require == 'function' ? (function(e, j, q) { | |
q = [] | |
for(j=0; j<i.length; j++){ | |
q.push(require(i[j])) | |
} | |
return e.apply(o, q) | |
}(n)) : n.call(o) | |
if( typeof module == 'object' ) { | |
module.exports = n | |
} else if( typeof define == 'function' ) { | |
define(a, i, n) | |
} else { | |
o[a] = n; | |
} | |
})('Lipsum', ['jquery'], function($) { | |
// $ == jquery | |
}, this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment