fta icon indicating copy to clipboard operation
fta copied to clipboard

[Bug] `import with` breaks parsing of file

Open Idrinth opened this issue 1 year ago • 3 comments

For example https://github.com/Idrinth/api-bench/blob/master/framework/src/cli/cli.ts#L15

Idrinth avatar Apr 06 '24 14:04 Idrinth

Thx for reporting. The internal swc libs will need to be upgraded to support this new syntax.

Specifically this is import attributes (TS 5.3): https://github.com/tc39/proposal-import-attributes

sgb-io avatar Apr 06 '24 15:04 sgb-io

It's not a show stopper for me luckily, but I'd love to have all files analyzed.

Idrinth avatar Apr 06 '24 15:04 Idrinth

FYI, I tested this in a branch using recent versions of the internal swc libs, but this syntax is still not supported yet. I'm unsure why as yet, as I'm fairly sure swc will compile syntax like that (I have not verified this)

sgb-io avatar May 26 '24 17:05 sgb-io