Closed jridgewell closed 9 years ago
I could probably move _iDOMisRoot
into the path's data object?
Well, generally in babel the answer is nested visitors.
So the initial visitor hits a root iDOM node. It holds onto that information in memory and then creates a new visitor that traverses down the tree.
Pushing the nested visitor discussion into #29.
Looks fine, but you may want to find ways to eliminate some of this state being added to nodes.