Respect the jsescOption.minimal generator option (#12755)
This commit is contained in:
@@ -58,7 +58,7 @@ function normalizeOptions(code, opts): Format {
|
||||
jsescOption: {
|
||||
quotes: "double",
|
||||
wrap: true,
|
||||
minimal: true,
|
||||
minimal: process.env.BABEL_8_BREAKING ? true : false,
|
||||
...opts.jsescOption,
|
||||
},
|
||||
recordAndTupleSyntaxType: opts.recordAndTupleSyntaxType,
|
||||
@@ -66,7 +66,6 @@ function normalizeOptions(code, opts): Format {
|
||||
|
||||
if (!process.env.BABEL_8_BREAKING) {
|
||||
format.jsonCompatibleStrings = opts.jsonCompatibleStrings;
|
||||
delete format.jsescOption.minimal;
|
||||
}
|
||||
|
||||
if (format.minified) {
|
||||
|
||||
Reference in New Issue
Block a user