Fix StringLiteral print (#10997)
This commit is contained in:
1 parent
3a7179194e
commit
c8133f8afa
1 file changed
+1
-3
@@ -13,9 +13,7 @@ function printLiteral(path, options /*, print*/) {
|
||||
case "NumericLiteral": // Babel 6 Literal split
|
||||
return printNumber(node.extra.raw);
|
||||
case "StringLiteral": // Babel 6 Literal split
|
||||
// When `estree` plugin is enabled in babel `node.raw`
|
||||
// https://github.com/babel/babel/issues/13329
|
||||
return printString(node.raw || node.extra.raw, options);
|
||||
return printString(node.extra.raw, options);
|
||||
case "NullLiteral": // Babel 6 Literal split
|
||||
return "null";
|
||||
case "BooleanLiteral": // Babel 6 Literal split
|
||||
|
||||
Reference in new issue
Block a user