mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +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, '');
|
.replace(/(?:\s*\/\/.*)*\n *lodash\.prototype.[\s\S]+?;/g, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove method fallbacks
|
// remove forks of removed methods
|
||||||
_.each(['createObject', 'isArguments', 'isArray', 'isFunction'], function(methodName) {
|
_.each(['createObject', 'defer', 'isArguments', 'isArray', 'isFunction'], function(methodName) {
|
||||||
if (_.size(source.match(RegExp(methodName + '\\(', 'g'))) < 2) {
|
if (_.size(source.match(RegExp(methodName + '\\(', 'g'))) < 2) {
|
||||||
source = eval('remove' + capitalize(methodName) + 'Fallback')(source);
|
source = eval('remove' + capitalize(methodName) + 'Fallback')(source);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user