Changelog: swc v1.1.40

Bugfixes#

@swc/register (#754)#

Previously, @swc/register emitted error on normal files. This is fixed in @swc/[email protected].

typescript enum (#757)#

You can now export default typescript enums.

requires with es6 imports (#724)#

Previously swc miscompiled code like

import { A } from "a";
const B = require("B");

This is now fixed, and it works without any problem. `