Skip to main content

Changelog: swc v1.2.92

· One min read

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

Improvements#

parser: Error for import/export specifiers without comma#

swc now emits parsing errors for

import { a b c } from 'mod'
export { a b c }

Implemented by @g-plane and by #2302.

parser: Improved error message.#

swc now use quotes to denote tokens on parsing failure.

Implemented by @g-plane and by #2304.

Visitor#

You can now import visitor like

import { Visitor } from "@swc/core/Visitor";

Implemented by @xnuk and by #2291.

ergonomic brand checks (#2064)#

Implemented by #2079.

type-only import/export specifiers (#2309)#

Implemented by @g-plane and by #2309.

Bugfixes#

minifier: Infinite loop (#2257)#

Fixed by #2283.