mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Fix legacy include=defer build test.
Former-commit-id: 49d0598ad3a979796cd07b6819c0aa08642c93a1
This commit is contained in:
8
build.js
8
build.js
@@ -1862,6 +1862,12 @@
|
||||
dependencyMap.toArray.push('isArray', 'map');
|
||||
}
|
||||
|
||||
_.each(['debounce', 'throttle'], function(methodName) {
|
||||
if (!useLodashMethod(methodName)) {
|
||||
dependencyMap[methodName] = [];
|
||||
}
|
||||
});
|
||||
|
||||
_.each(['max', 'min'], function(methodName) {
|
||||
if (!useLodashMethod(methodName)) {
|
||||
dependencyMap[methodName] = _.without(dependencyMap[methodName], 'isArray', 'isString');
|
||||
@@ -1997,7 +2003,7 @@
|
||||
// replace `_.isPlainObject` with `shimIsPlainObject`
|
||||
source = source.replace(
|
||||
matchFunction(source, 'isPlainObject').replace(/[\s\S]+?var isPlainObject *= */, ''),
|
||||
matchFunction(source, 'shimIsPlainObject').replace(/[\s\S]+?function shimIsPlainObject/, 'function')
|
||||
matchFunction(source, 'shimIsPlainObject').replace(/[\s\S]+?function shimIsPlainObject/, 'function').replace(/\s*$/, '')
|
||||
);
|
||||
|
||||
source = removeFunction(source, 'shimIsPlainObject');
|
||||
|
||||
Reference in New Issue
Block a user