inline Date.now, remove redundant comment
This commit is contained in:
parent
917d474804
commit
9bd0cd73fc
3 changed files with 22 additions and 27 deletions
|
|
@ -74,7 +74,6 @@ module.exports = function(input, output, options) {
|
|||
function fixCollisions(code) {
|
||||
for (var variable in usedVariables) {
|
||||
var collision = new RegExp("([^\\.])\\b" + variable + "\\b(?![\"'`])", "g")
|
||||
// var collision = new RegExp("([^\\.])" + variable + "\\b(?![\"'`])", "g")
|
||||
var exported = new RegExp("module\\.exports\\s*=\\s*" + variable)
|
||||
if (collision.test(code) && !exported.test(code) && !globals[variable.match(/[^\.]+/)]) {
|
||||
var fixed = variable + usedVariables[variable]++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue