mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Fix typo in build.js.
Former-commit-id: d5710a62297b824465f29a43c28882865beec971
This commit is contained in:
10
build.js
10
build.js
@@ -2050,11 +2050,6 @@
|
|||||||
isGlobal = _.contains(exportsOptions, 'global'),
|
isGlobal = _.contains(exportsOptions, 'global'),
|
||||||
isNode = _.contains(exportsOptions, 'node');
|
isNode = _.contains(exportsOptions, 'node');
|
||||||
|
|
||||||
// delete the `_.findWhere` dependency map to enable its alias mapping
|
|
||||||
if (!isUnderscore || isLodashMethod('findWhere')) {
|
|
||||||
delete dependencyMap.findWhere;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------*/
|
/*------------------------------------------------------------------------*/
|
||||||
|
|
||||||
var isExcluded = function() {
|
var isExcluded = function() {
|
||||||
@@ -2072,6 +2067,11 @@
|
|||||||
return _.contains(methods, methodName);
|
return _.contains(methods, methodName);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// delete the `_.findWhere` dependency map to enable its alias mapping
|
||||||
|
if (!isUnderscore || isLodashMethod('findWhere')) {
|
||||||
|
delete dependencyMap.findWhere;
|
||||||
|
}
|
||||||
|
|
||||||
// methods to include in the build
|
// methods to include in the build
|
||||||
var includeMethods = options.reduce(function(accumulator, value) {
|
var includeMethods = options.reduce(function(accumulator, value) {
|
||||||
return /^include=.*$/.test(value)
|
return /^include=.*$/.test(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user