Changelog: swc v1.1.8
#525)#
Optional Chaining (As this is stage 4, it's automatically enabled.
You can write code like
in ecmascript too. Previously it was possible only in typescript.
#526)#
Nullish coalescing (As this is stage 3, you need to set jsc.parser.nullishCoalescing
to true to use it.
swc
can now handle ??
operator.
is compield as
#520)#
BigInt literals (As this is stage 4, it's automatically enabled.
This is also usable from typescript without any additional configuration.
#521)#
Numeric separators (As this is stage 3, you need to set jsc.parser.numericSeparator
to true to use it.
Long numeric literals can be written as
#528)#
Comments improvements (Comments on paren expressions are moved to inner expresssion correctly.
is compiled as