Skip to content

Commit

Permalink
Remove jsonCompatibleStrings option (#9958)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau authored and nicolo-ribaudo committed May 8, 2020
1 parent 91b90b3 commit 43e5379
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions packages/babel-generator/src/generators/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,6 @@ export function StringLiteral(node: Object) {

// ensure the output is ASCII-safe
const opts = this.format.jsescOption;
if (this.format.jsonCompatibleStrings) {
opts.json = true;
}
const val = jsesc(node.value, opts);

return this.token(val);
Expand Down
1 change: 0 additions & 1 deletion packages/babel-generator/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ function normalizeOptions(code, opts): Format {
compact: opts.compact,
minified: opts.minified,
concise: opts.concise,
jsonCompatibleStrings: opts.jsonCompatibleStrings,
indent: {
adjustMultilineComment: true,
style: " ",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"minified": true,
"jsonCompatibleStrings": true
"jsescOption": { "json": true }
}

0 comments on commit 43e5379

Please sign in to comment.