-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
emitAssertForImportAttributes
does not emit assert for import attributes
#7928
Comments
Yeah, I didn't realize that the test is wrong. I was too busy at that times due to a talk I did yesterday. I'm now not too busy, so I will be able to do it correctly. 😄 |
@kdy1 Fantastic! I'm not too familiar with your normal project timelines, any idea when we might expect it to be moved out of experimental status? It would be nice to have a way for ts-node users to import JSON from es modules, but you'll probably fix the flag long before V8 support |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
#7914 added an option to emit
assert
for import attributes.However, it does not do that. It emits
with
for import attributes.This is even verified by the tests, you can observe the same output in both cases, regardless of whether the
emitAssertForImportAttributes
is set.As far as I can tell, it does nothing.
Input code
Config
Playground link
No response
SWC Info output
No response
Expected behavior
Expect
emitAssertForImportAttributes
to emit assert for import attributes.Actual behavior
Emits
with
for import attributes, regardless of whetheremitAssertForImportAttributes
is set or not.Version
1.3.83
Additional context
I realize that this is an experimental feature. I am reporting the results of the experiment, that it clearly either does not work as intended, or if the intent of
emitAssertForImportAttributes
to do something other than emitassert
for import assertions, then that is a very bad name for the flag.The text was updated successfully, but these errors were encountered: