Skip to content

v2.10.0

Compare
Choose a tag to compare
@j4k0xb j4k0xb released this 12 Sep 17:30
· 147 commits to master since this release

Features

jsx("div", { children: jsxs("span", { children: ["Hello ", name] }) })

->

<div>
  <span>Hello {name}</span>
</div>
  • convert return void sequence to statements: return void (a(), b()); -> a(); b(); return;

  • simplify merged computed properties: const obj = {}; obj[1] = 2; -> const obj = { 1: 2 };

  • resolve circular browserify dependencies

  • detect for(; true;) and while ([]) as infinite loop

  • while (arr.pop()); no longer gets converted to while (arr.pop()) { ; }

Bug Fixes

  • the webcrack(code, { deobfuscate: false }) option now works (can give a minor performance boost on unobfuscated code)
  • export is no longer removed when splitting export const a = 1, b = 2; into multiple variables