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
babel-node should add '.ts', '.tsx' as a default extensions to hook into #11577
Comments
Hey @stnor! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite." |
Do you mean what is described at microsoft/TypeScript#38546? In particular that Moreover, typescript does accept as input syntax The problem is, that one cannot use the same input for preset-typescript and typescript, when the target of the latter is es2020, and to get the result of both parsers working at the same time. |
I edited the comment above several times. |
Related - #8652 |
@dilyanpalauzov no. It's what @nicolo-ribaudo ref'ed.. |
Bug Report
Current Behavior
I'm running jasmine tests in babel-node in my front-end typescript project, and I got
It took me four hours to understand that *.ts files aren't included by default in babel-node. Google/SE was no help.
As Typescript is supported by babel since a while back, it seems resonable that babel-node should hook into '.ts'-files by default? Perhaps '.tsx' too.
See https://babeljs.io/docs/en/next/babel-node.html
Input Code
DOESN'T WORK
package.json:
DOES WORK
package.json:
The text was updated successfully, but these errors were encountered: