Just personal notes that I'm collecting as I learn more about how to write plugins for babel.
- Making a property on an object
t.property('init', t.identifier('foo'), t.literal('bar'))
- Not sure why, but the kind of the property is
init
, second parameter is key of the object, final one is the value
- Value to node
t.valueToNode()
- Remove a node