mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Reduce Underscore build and update Underscore version number.
Former-commit-id: fd631cd5525fa287c2af493bfe4a93668678977d
This commit is contained in:
8
build.js
8
build.js
@@ -1256,8 +1256,14 @@
|
||||
});
|
||||
|
||||
if (isUnderscore) {
|
||||
// remove compiled template cleanup from `_.template`
|
||||
source = source.replace(/(?:\s*\/\/.*)*\n *source *=.+?isEvaluating.+?reEmptyStringLeading[\s\S]+?\);/, '');
|
||||
source = removeVar(source, 'reEmptyStringLeading');
|
||||
source = removeVar(source, 'reEmptyStringMiddle');
|
||||
source = removeVar(source, 'reEmptyStringTrailing');
|
||||
|
||||
// replace `isArguments` and its fallback
|
||||
(function() {
|
||||
// replace `isArguments` and its fallback
|
||||
var snippet = matchFunction(source, 'isArguments')
|
||||
.replace(/function isArguments/, 'lodash.isArguments = function');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user