Changelog: swc v1.1.19

New features#

Optional chaining in es (#619)#

Code like

a?.b?.c;

is now possible within ecmascript.

As it's stage 3, you need to set an option to use it. See the doc for the option.

top-level await (#627)#

swc can parse codes like

await foo();

As it's stage 3, you need to set an option to use it. See the doc for the option. Also, note that you need to target es2017 or higher to use this feature.