Changelog: swc v1.1.35
#
Span regressions[email protected]
made many changes to the parser, and it also introduced some regressions of span.
#712)#
Start of arrow in conditional expression (The span of the code like
is now fixed.
#711)#
Decorators on class (Example code:
#714)#
Tagged template literals (Example code:
#
Bugfixes#715)#
Ambient context (Example code:
#717)#
async in start of conditional expression (Previously, swc
had a bug which make swc
reject codes like the below.
This is fixed, and async
can be the start of a conditional expression.
#
New features#
"inline" source mapsPreviously, swc/cli
handled this, and providing 'inline'
to swc/core
had no effect.
From now, swc/core
handles it so code like
works as expected.