Changelog: swc v1.1.7
#512)#
Statement Expression type (NOTE: Although this is a technically breaking change, I decided not to bump major version as I don't think someone has created a plugin which depends on exact type of an expression statement.
swc
now stores expression statements as a new type named ExpressionStatement. This change is made to provide exact span of an expression statement.
#511)#
Regex type (NOTE: Although this is a technically breaking change, I decided not to bump major version as I don't think someone has created a plugin which depends on exact type of a regexp literal.
Type of Regex.expression and Regex.flags is string, not StringLiteral. This matches regexp type from babel and typescript.
#516)#
Fixed parsing of const enum (swc
previously parsed const enum correctly on debug mode, but it has a bug in release mode. This is fixed and (currently) a const enum works as a normal enum.
#519)#
Fixed space bug of the jsx trnasform (is compiled as
instead of