Generate better builder names for JSX* and TS* (#6967)

e.g. JSXIdentifier -> jsxIdentifier.
The jSXIdentifier alias isn't removed, so this commit doesn't introduce breaking changes.
This commit is contained in:
Nicolò Ribaudo
2017-12-07 12:17:40 +01:00
committed by GitHub
parent fcfa987926
commit a2aabbd33d
7 changed files with 101 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ export default function(api, options) {
visitor.JSXAttribute = function(path) {
if (t.isJSXElement(path.node.value)) {
path.node.value = t.jSXExpressionContainer(path.node.value);
path.node.value = t.jsxExpressionContainer(path.node.value);
}
};