mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Remove varMethodDependencyMap from build.js.
Former-commit-id: fa032025e6c3b6fed18f72bf3cc6ba8ff58cff43
This commit is contained in:
9
build.js
9
build.js
@@ -2111,8 +2111,7 @@
|
|||||||
|
|
||||||
// backup dependencies to restore later
|
// backup dependencies to restore later
|
||||||
var dependencyMapBackup = _.cloneDeep(dependencyMap),
|
var dependencyMapBackup = _.cloneDeep(dependencyMap),
|
||||||
varDependencyMapBackup = _.cloneDeep(varDependencyMap),
|
varDependencyMapBackup = _.cloneDeep(varDependencyMap);
|
||||||
varMethodDependencyMapBackup = _.cloneDeep(varMethodDependencyMap);
|
|
||||||
|
|
||||||
// used to specify a custom IIFE to wrap Lo-Dash
|
// used to specify a custom IIFE to wrap Lo-Dash
|
||||||
var iife = options.reduce(function(result, value) {
|
var iife = options.reduce(function(result, value) {
|
||||||
@@ -2416,7 +2415,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isModularize) {
|
if (isModularize) {
|
||||||
varMethodDependencyMap.templateSettings = ['escape'];
|
_.each(['contains', 'difference', 'intersection', 'omit', 'uniq'], function(methodName) {
|
||||||
|
dependencyMap[methodName] = _.without(dependencyMap[methodName], 'getIndexOf');
|
||||||
|
dependencyMap[methodName].push( 'basicEach');
|
||||||
|
})
|
||||||
|
|
||||||
_.each(['createIterator', 'lodash', 'value'], function(methodName) {
|
_.each(['createIterator', 'lodash', 'value'], function(methodName) {
|
||||||
dependencyMap[methodName] = _.without(dependencyMap[methodName], 'lodash', 'lodashWrapper');
|
dependencyMap[methodName] = _.without(dependencyMap[methodName], 'lodash', 'lodashWrapper');
|
||||||
@@ -3945,7 +3947,6 @@
|
|||||||
// restore dependency maps
|
// restore dependency maps
|
||||||
dependencyMap = dependencyMapBackup;
|
dependencyMap = dependencyMapBackup;
|
||||||
varDependencyMap = varDependencyMapBackup;
|
varDependencyMap = varDependencyMapBackup;
|
||||||
varMethodDependencyMap = varMethodDependencyMapBackup;
|
|
||||||
|
|
||||||
// output debug build
|
// output debug build
|
||||||
if (!isMinify && (isCustom || isDebug || isTemplate)) {
|
if (!isMinify && (isCustom || isDebug || isTemplate)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user