(Not sure if the issue title is actually accurate, please rename.)
Previously
var babel = require('./packages/babel');
var plugin = new babel.Transformer('test', {
JSXElement: function (node, parent, scope, file) {
var openName = node.openingElement.name.name;
if (openName === 'foo' && node.children[0].type === 'Literal') {
return node.children[0];
}
}
});
console.log(babel.transform('var x = <foo>bar</foo>;', {whitelist: [], plugins: [plugin]}).code);
printed
but now it prints
I bisected this to f0994f1. I assume the old printing of the node is getting cached somehow. Bug or feature?
(Not sure if the issue title is actually accurate, please rename.)
Previously
printed
but now it prints
I bisected this to f0994f1. I assume the old printing of the node is getting cached somehow. Bug or feature?