Remove exports comment when removing the _ exports via removeRunInContext in build.js

Former-commit-id: 90460080310f890b707eaa848146de8a26d6765b
This commit is contained in:
John-David Dalton
2013-06-30 00:26:20 -07:00
parent 880f785d04
commit 6187cdafe3

View File

@@ -1605,7 +1605,7 @@
.replace(/\bcontext\b/g, 'window')
.replace(/(?:\n +\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)?\n *var Array *=[\s\S]+?;\n/, '')
.replace(/(return *|= *)_([;)])/g, '$1lodash$2')
.replace(/^ *var _ *=.+\n+/m, '');
.replace(/^(?: *\/\/.*\s*)* *var _ *=.+\n+/m, '');
// remove local timer variables
source = removeVar(source, 'clearTimeout');