Changelog: swc v1.1.58

Improvements#

default syntax (#840)#

Previosuly, options.jsc.parser.syntax was required, and

var transpiledJs = swc.transformSync(js, {
minify: true,
jsc: {
parser: {
nullishCoalescing: true,
numericSeparator: true,
},
},
});

didn't work as intended. From now, the code above works exactly same as

var transpiledJs = swc.transformSync(js, {
minify: true,
jsc: {
parser: {
syntax: "ecmascript",
nullishCoalescing: true,
numericSeparator: true,
},
},
});