-
Notifications
You must be signed in to change notification settings - Fork 73
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
Pass filename to parsers if available #78
Comments
friendly ping :) |
Hi @jquense yes, I agree with you that Babel should be the way forward now that it supports TypeScript. I'll see what I can do for the next release. The project was in a Hiatus kind of state, but I will try to invest more time in the upcoming days/weeks. On a related note, I am still not sure how to deal with |
hey @renke np on the timing, I understand how maintaining these sorts of projects goes. I'm happy to help out maintaining as well if you're interested, we have pretty fully integrated import-sot into our workflows at work so are reasonably invested. I think maybe the best approach nowadays to babel is to use happy to put together a PR if that sounds good? |
Hi @jquense I just pushed c782850 to master, is what you had in mind? The Babel parser now uses The TypeScript parser can probably be deprecated now. I also intent to add |
Nice ! That looks awesome, seems like being down to one parser is definitely a week. Looking forward to testing this out |
I just released this as part of v6. Let me know if you find any problems! |
Now that babel supports typescript it's possible to have a single parser for js and ts files, except for the limiting factor that parsers don't know what type of file they are looking at. In other places, I've turned on flow/ts support based on the input file extension, and i think that approach would work well here as well.
what do you think about either adding babel ts support out of the box, or at least altering the parser api to take in the filename so third party parsers could do it?
The text was updated successfully, but these errors were encountered: