Skip to content

Commit

Permalink
Fix StringLiteral print (#10997)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jun 1, 2021
1 parent 3a71791 commit c8133f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/language-js/print/literal.js
Expand Up @@ -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
Expand Down

0 comments on commit c8133f8

Please sign in to comment.