-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
FUTURE: remove import assertions support for JavaScript #23541
FUTURE: remove import assertions support for JavaScript #23541
Conversation
b14329e
to
6b636a5
Compare
6b636a5
to
f39ec24
Compare
f39ec24
to
a23a992
Compare
a23a992
to
e330a91
Compare
e330a91
to
830b68b
Compare
_ => { | ||
if *DENO_FUTURE { | ||
// deno_ast removes TypeScript `assert` keywords, so this flag only affects JavaScript | ||
// TODO(petamoriken): Need to check TypeScript `assert` keywords in deno_ast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we should address this one before landing the PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think so. It would be better to work on a separate PR for TypeScript, since it is likely that the error will be displayed on the deno_ast side (swc-project/swc#8893 (comment)), rather than using this flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me talk with @dsherret about this first 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think maybe we should just not worry about it for now? It would be a lot of work and supporting it can make more code just keep working for the time being.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
Ref #17944, swc-project/swc#8893
TypeScript removes the
assert
keywords in the transpile, so this PR only works for JavaScript files