Skip to main content

Changelog: swc v1.2.85

· One min read

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

Improvements#

minifier (#21083)#

Lots of rules are implemeneted.

Bugfixes#

minifier: Empty return (#2214)#

Previously swc broke code like

function f(a, b) {  if (a) {    if (b) return;    foo();  }  bar();}

Fixed by #2183.

codegen: unary minus (#2213)#

Preivsouly swc broke code like

function f(a, b, c) {  return a - -b * c;}

if minification is enabled.

Fixed by #2183.

typescript: re-export of type (#2219)#

Previsouly swc didn't remove export { TestInfo } in the code below.

import type { TestInfo } from "./config";
export { TestInfo };

Fixed by #2220.