Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] import with breaks parsing of file #114

Open
Idrinth opened this issue Apr 6, 2024 · 3 comments
Open

[Bug] import with breaks parsing of file #114

Idrinth opened this issue Apr 6, 2024 · 3 comments

Comments

@Idrinth
Copy link

Idrinth commented Apr 6, 2024

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

@sgb-io
Copy link
Owner

sgb-io commented Apr 6, 2024

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

@Idrinth
Copy link
Author

Idrinth commented Apr 6, 2024

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

@sgb-io
Copy link
Owner

sgb-io commented May 26, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants