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

Support babel 7 for .ts / .tsx #48

Closed
simonbuchan opened this issue Nov 29, 2017 · 3 comments
Closed

Support babel 7 for .ts / .tsx #48

simonbuchan opened this issue Nov 29, 2017 · 3 comments

Comments

@simonbuchan
Copy link
Contributor

Mentioned this in #47, but got no reply. Babel 7 adds @babel/preset-typescript, which, obviously, lets you transpile .ts/.tsx code with the babel pipeline (with some limitations). It would be good to be able to use, e.g. webpackfile.ts without adding any more dependencies or workarounds.

Looks simple enough to add - just add @babel/register with extensions: '.ts' to the end of .ts - but I'd like feedback on if this is a terrible idea before submitting a PR 🤞

@phated
Copy link
Member

phated commented Nov 30, 2017

I'm not a big fan of this idea. But if we do it, I'd want babel to be the last one in the list (excluding deprecated ones)

@simonbuchan
Copy link
Contributor Author

Yeah, you very well could be using both ts-node for .ts and babel 7 for .babel.js. Hah, .babel.ts?

@phated
Copy link
Member

phated commented Nov 30, 2017

Unfortunately "double" extensions don't work correctly. I think there's an issue about that.

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