mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Add defer to the remove forks check in build.js.
Former-commit-id: 964ffc9af09e24b3a9fb3bdc84ff4495521bcd59
This commit is contained in:
4
build.js
4
build.js
@@ -3575,8 +3575,8 @@
|
||||
.replace(/(?:\s*\/\/.*)*\n *lodash\.prototype.[\s\S]+?;/g, '');
|
||||
}
|
||||
|
||||
// remove method fallbacks
|
||||
_.each(['createObject', 'isArguments', 'isArray', 'isFunction'], function(methodName) {
|
||||
// remove forks of removed methods
|
||||
_.each(['createObject', 'defer', 'isArguments', 'isArray', 'isFunction'], function(methodName) {
|
||||
if (_.size(source.match(RegExp(methodName + '\\(', 'g'))) < 2) {
|
||||
source = eval('remove' + capitalize(methodName) + 'Fallback')(source);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user