mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Fix build.
Former-commit-id: dba1a3fa7526001d0062dc6e0b44f3c6e3d3d8db
This commit is contained in:
9
build.js
9
build.js
@@ -1644,8 +1644,8 @@
|
||||
source = removeFunction(source, 'isArguments');
|
||||
source = source.replace(getIsArgumentsFallback(source), function(match) {
|
||||
return snippet + '\n' + match
|
||||
.replace(/\bisArguments\b/g, 'lodash.$&')
|
||||
.replace(/\bnoArgsClass\b/g, '!lodash.isArguments(arguments)');
|
||||
.replace(/isArguments/g, 'lodash.$&')
|
||||
.replace(/noArgsClass/g, '!lodash.isArguments(arguments)');
|
||||
});
|
||||
}());
|
||||
|
||||
@@ -1719,6 +1719,11 @@
|
||||
return match.replace(/(?:\s*\/\/.*)*\n( *)if *\(noCharByIndex[\s\S]+?\n\1}/, '');
|
||||
});
|
||||
|
||||
// replace `createFunction` with `Function` in `_.template`
|
||||
source = source.replace(matchFunction(source, 'template'), function(match) {
|
||||
return match.replace(/createFunction/g, 'Function');
|
||||
});
|
||||
|
||||
source = removeVar(source, 'extendIteratorOptions');
|
||||
source = removeVar(source, 'iteratorTemplate');
|
||||
source = removeVar(source, 'noCharByIndex');
|
||||
|
||||
Reference in New Issue
Block a user