don't inherit from XJSAttribute in jsx transformer because it causes some weird whitespace issues
This commit is contained in:
parent
e8d4806b45
commit
771d3dc8a0
@ -48,9 +48,7 @@ exports.XJSExpressionContainer = function (node) {
|
|||||||
exports.XJSAttribute = {
|
exports.XJSAttribute = {
|
||||||
exit: function (node) {
|
exit: function (node) {
|
||||||
var value = node.value || t.literal(true);
|
var value = node.value || t.literal(true);
|
||||||
var propNode = t.property("init", node.name, value);
|
return t.property("init", node.name, value);
|
||||||
t.inherits(propNode, node);
|
|
||||||
return propNode;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user