mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Add rake task to build with closure advanced optimizations.
You would use this to compile your code _with_ underscore, to remove all those dead underscore functions you don't use. Slight tweak to code to `root._` code to get working, and must remove anonymous wrapper function for current closure compiler to remove dead code.
This commit is contained in:
@@ -25,8 +25,9 @@
|
||||
var breaker = typeof StopIteration !== 'undefined' ? StopIteration : '__break__';
|
||||
|
||||
// Create a safe reference to the Underscore object for reference below.
|
||||
var _ = root._ = function(obj) { return new wrapper(obj); };
|
||||
|
||||
var _ = function(obj) { return new wrapper(obj); };
|
||||
root._ = _;
|
||||
|
||||
// Export the Underscore object for CommonJS.
|
||||
if (typeof exports !== 'undefined') exports._ = _;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user