mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Remove exports comment when removing the _ exports via removeRunInContext in build.js
Former-commit-id: 90460080310f890b707eaa848146de8a26d6765b
This commit is contained in:
2
build.js
2
build.js
@@ -1605,7 +1605,7 @@
|
|||||||
.replace(/\bcontext\b/g, 'window')
|
.replace(/\bcontext\b/g, 'window')
|
||||||
.replace(/(?:\n +\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)?\n *var Array *=[\s\S]+?;\n/, '')
|
.replace(/(?:\n +\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)?\n *var Array *=[\s\S]+?;\n/, '')
|
||||||
.replace(/(return *|= *)_([;)])/g, '$1lodash$2')
|
.replace(/(return *|= *)_([;)])/g, '$1lodash$2')
|
||||||
.replace(/^ *var _ *=.+\n+/m, '');
|
.replace(/^(?: *\/\/.*\s*)* *var _ *=.+\n+/m, '');
|
||||||
|
|
||||||
// remove local timer variables
|
// remove local timer variables
|
||||||
source = removeVar(source, 'clearTimeout');
|
source = removeVar(source, 'clearTimeout');
|
||||||
|
|||||||
Reference in New Issue
Block a user