Use raw value of JSXText and JSXAttribute (#5256)
This commit is contained in:
committed by
Daniel Tschinder
parent
878a7c5fdb
commit
348cc5eeff
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user