Changelog: swc v1.1.57


Source map (#835)#

The source map is fixed. I verified that generated source map point the original source correctly by using source map visualizer.

yield* (#833)#

regenerator pass had a bug related to yield*.

Previously, swc broke code like

function* gen() {
yield* [1, 2, 3];

But it's fixed and the function above correctly yields 3 times.

BigInt literals (#837)#

There was no integration test for bigint literals and the test suite failed to catch it. Previously, due to the bug of swc_ecma_codegen, bigint literal cannot be printed

var foo = 2n + 7n;