Changelog: swc v1.2.12

Bugfixes#

computed constructors (#933)#

Codes like

new (eval("Date"))();

is affected.

spack#

Conditional require (#937)#

You can now use spack for client-side applications, too. Previously, codes like

if (!Object.defineProperty) {
require("./object-property-shim");
}

make spack crash, but it's fixed and you can use spack with a client-side library like react.

Improvements#

Reduced size (#928)#

swc now uses opt-level = 'z' to reduce size. It results in a massive size reduction.

PreivousNew
OS X32.7 MB22.6 MB
linux29.4 MB15.8MB
Windows37.6 MB17.7 MB