Skip to main content

Changelog: swc v1.1.22

· One min read

Improvements#

Optimizer#

swc can reduce

let b = 2;
let a = 1;if (b) {  a = 2;}
let c;if (a) {  c = 3;}console.log(c);

down to

console.log(3);

Hotfix#

hygiene pass#

Global variable accesses are marked with the same mark.