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
Support for transpiling imports with assert {type: "json"}
to use the old native way of node:fs ?
#744
Comments
@renhiyama thanks for the report! I filed a tracking issue a while back as #566 , but I know this syntax is becoming more common, so definitely seems time to add better support. Could you clarify more specifically what you mean by "the old native way of node:fs"? Is there another transpiler that has the behavior you want that I could model the implementation off of? I think the behavior I'd be most comfortable with is this:
Would that work for your use case? |
Oh i didn't knew it was supported in nodejs v16! Yea then we can continue with what you said above! (I didn't test a json import but I remember doing it last year) looking forward for the fix since a lot of deno modules use that and I need a way to get them too! |
hey @alangpierce , when are you publishing a new version of sucrase so I can start using it in my projects? |
Just released as 3.27.0, let me know if you see issues! |
Consider looking at this code: https://deno.land/x/emoji@0.2.1/emoji.ts?source
It has
assert
, which crashes sucrase:The 4th line has
assert
.The text was updated successfully, but these errors were encountered: