Skip to main content

Changelog: swc v1.2.88

· One min read

To see full list of patches, please visit https://github.com/swc-project/swc/milestone/189?closed=1

Improvements#

minifier#

I ported some more minification rules.

Bugfixes#

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.

e.g.

export default class extends Wepy {  events = {    "abc: click": function abcClick() {      this.data = 123;      console.log("abc");    },  };
  setData() {    this.data = 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.