Skip to main content

Changelog: swc v1.2.86

· One min read

To see full list of patches, please visit https://github.com/swc-project/swc/milestone/187?closed=1

Improvements#

this in arrow expressions (#2212)#

swc now emits similar output to babel instead of using bind.

Implemented by #2222.

Bugfixes#

unary with exponential operation (#2191)#

swc now wraps an unary expression before an exponentation operator.

Fixed by #2222.

parser: Ternary (#2196)#

swc can now parse

export const reproValue = true  ? {}  : {      reproFunc: (_: any): any => {},    };

correctly.

Fixed by #2222.

stack overflow (#2223)#

Previously swc throwed an error if a Program is too large.

Fixed by #2222.

jsc.paths (#2050)#

Finally swc correctly implements support for paths and baseUrl.

Fixed by #2227.