node_modules/browser-pack-flat/index.js
// otherwise replace with a dummy declarator
otherwise replace with a dummy declarator
otherwise replace with a dummy declarator
function removeVariableDeclarator (row, decl) {
  if (decl.parent.type === 'VariableDeclaration') {
    var i = decl.parent.declarations.indexOf(decl)
    if (decl.parent.declarations.length === 1) {
      var removed = decl.parent.getSource()
      decl.parent.edit.update(wrapComment('removed: ' + removed) + ';')
    } else if (i === decl.parent.declarations.length - 1) {
      row[kMagicString].overwrite(decl.parent.declarations[i - 1].end, decl.end, '')
    } else {
      row[kMagicString].overwrite(decl.start, decl.parent.declarations[i + 1].start, '')
    }
    decl.parent.declarations.splice(i, 1)
  } else {
    if (!row[kDummyVars]) row[kDummyVars] = 0
    var id = '__dummy_' + row.index + '$' + row[kDummyVars]
    row[kDummyVars]++
    decl.edit.update(toIdentifier(id) + ' = 0')
  }
}
function removeVariableDeclarator ( row , decl ) { if ( decl . parent . type === 'VariableDeclaration' ) { var i = decl . parent . declarations . indexOf ( decl ) if ( decl . parent . declarations . length === 1 ) { var removed = decl . parent . getSource ( ) decl . parent . edit . update ( wrapComment ( 'removed: ' + removed ) + ';' ) } else if ( i === decl . parent . declarations . length - 1 ) { row [ kMagicString ] . overwrite ( decl . parent . declarations [ i - 1 ] . end , decl . end , '' ) } else { row [ kMagicString ] . overwrite ( decl . start , decl . parent . declarations [ i + 1 ] . start , '' ) } decl . parent . declarations . splice ( i , 1 ) } else { if ( ! row [ kDummyVars ] ) row [ kDummyVars ] = 0 var id = '__dummy_' + row . index + '$' + row [ kDummyVars ] row [ kDummyVars ] ++ decl . edit . update ( toIdentifier ( id ) + ' = 0' ) } }
otherwise replace with a dummy declarator
otherwise replace with a dummy declarator
// Remove ", a = 1" // Remove "a = 1, "