traverse(tree, cfg) {
    return estraverse.traverse(tree, Object.assign(cfg, jsxExtensionKeys));
  }
Traverses AST like ESTraverse.traverse()
@param  {Object} tree
@param  {Object} cfg Object with optional enter() and leave() methods.
@return {Object} The transformed tree