diff --git a/build.js b/build.js index 2807cf4ff..654a0e810 100755 --- a/build.js +++ b/build.js @@ -893,7 +893,7 @@ source = source.replace(/(?:\s*\/\/.*)*\n( +)if *\(value.length *=== *0[\s\S]+?\n\1}/, ''); // remove `noArgsClass` from `_.clone`, `_.isEqual`, and `_.size` - source = source.replace(/ *\|\| *\(noArgsClass *&[^)]+?\)\)/g, ''); + source = source.replace(/ *\|\| *\(noArgsClass *&&[^)]+?\)\)/g, ''); // remove `noArgsClass` from `_.isEqual` source = source.replace(/if *\(noArgsClass[^}]+?}\n/, ''); @@ -904,6 +904,15 @@ // remove `noCharByIndex` from `_.reduceRight` source = source.replace(/noCharByIndex *&&[^:]+: *([^;]+)/g, '$1'); + // remove `noNodeClass` assignment + source = source.replace(/(?:\n +\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)?\n *try *\{(?:\s*\/\/.*)*\n *var noNodeClass[\s\S]+?catch[^}]+}\n/, ''); + + // remove `noNodeClass` from `_.clone` + source = source.replace(/(?:\s*\/\/.*)*\n *isObj *= *!noNodeClass.+\n/, ''); + + // remove `noNodeClass` from `_.isEqual` + source = source.replace(/ *\|\| *\(noNodeClass *&&[\s\S]+?\)\)\)/, ''); + source = removeVar(source, 'extendIteratorOptions'); source = removeVar(source, 'hasDontEnumBug'); source = removeVar(source, 'iteratorTemplate'); diff --git a/build/pre-compile.js b/build/pre-compile.js index 39fb320dc..fa7b90ec9 100644 --- a/build/pre-compile.js +++ b/build/pre-compile.js @@ -277,7 +277,7 @@ .replace("') {\\n'", "'){'") // remove `useSourceURL` variable - source = source.replace(/(?:\n +\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)?\n *try *\{(?:\s*\/\/.*\n)* *var useSourceURL[\s\S]+?catch[^}]+}\n/, ''); + source = source.replace(/(?:\n +\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)?\n *try *\{(?:\s*\/\/.*)*\n *var useSourceURL[\s\S]+?catch[^}]+}\n/, ''); // remove debug sourceURL use in `_.template` source = source.replace(/(?:\s*\/\/.*\n)* *if *\(useSourceURL[^}]+}/, '');