remove rawValue property from JSX inner text Literal nodes
This commit is contained in:
parent
e229f8ea55
commit
671196dffa
@ -379,7 +379,10 @@ export default function(instance) {
|
||||
instance.extend("parseExprAtom", function(inner) {
|
||||
return function(refShortHandDefaultPos) {
|
||||
if (this.match(tt.jsxText)) {
|
||||
return this.parseLiteral(this.state.value);
|
||||
var node = this.parseLiteral(this.state.value);
|
||||
// https://github.com/babel/babel/issues/2078
|
||||
node.rawValue = null;
|
||||
return node;
|
||||
} else if (this.match(tt.jsxTagStart)) {
|
||||
return this.jsxParseElement();
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user