Use raw value of JSXText and JSXAttribute (#5256)

This commit is contained in:
Alex Rattray
2017-04-04 06:46:20 -07:00
committed by Daniel Tschinder
parent 878a7c5fdb
commit 348cc5eeff
10 changed files with 112 additions and 1 deletions

View File

@@ -43,7 +43,13 @@ export function JSXSpreadChild(node: Object) {
}
export function JSXText(node: Object) {
this.token(node.value);
const raw = this.getPossibleRaw(node);
if (raw != null) {
this.token(raw);
} else {
this.token(node.value);
}
}
export function JSXElement(node: Object) {