Skip to main content

Changelog: swc v1.2.88

· One min read

To see full list of patches, please visit



I ported some more minification rules.


typescript: import = (#2234)#

Previously swc miscompiled

import polygons = Shapes.Polygons;let sq = new polygons.Square();

Fixed by #2249.

this in class properties (#2228)#

Previsouly, swc broke code if a class property in a child class uses this.


export default class extends Wepy {  events = {    "abc: click": function abcClick() { = 123;      console.log("abc");    },  };
  setData() { = 456;  }}

Fixed by #2249.

minifier: RegExp#

The minifier had a bug related to handling of RegExp, and it could break some codes.

Fixed by #2229.