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

Tracking: swc erroneously converts import assertions assert keyword to with #2051

Closed
cspotcode opened this issue Sep 2, 2023 · 2 comments · Fixed by #2062
Closed

Tracking: swc erroneously converts import assertions assert keyword to with #2051

cspotcode opened this issue Sep 2, 2023 · 2 comments · Fixed by #2062

Comments

@cspotcode
Copy link
Collaborator

cspotcode commented Sep 2, 2023

Tracking: swc-project/swc#7908

Once swc fixes this, we may need to require the newer version or pass a flag.

Converting to with might be correct in some situations, I'm not an expert on the spec changes. But I know that for our purposes on node, we need to keep the assert.

@MadCcc
Copy link

MadCcc commented Sep 7, 2023

Is there anyway to override swc configuration in ts-node?
It is broken after swc released 1.3.83
image

@cspotcode
Copy link
Collaborator Author

Linking:
swc-project/swc#7928
#2056

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

Successfully merging a pull request may close this issue.

2 participants