You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this is captured elsewhere. I'm trying to sort out all of the moving parts with configuring Babel/TypeScript, so I may have missed something.
I'm setting up a TypeScript Node.js project, and I'd like to be able to do the following:
Use TypeScript.
Use the import/export syntax in my files.
Use top-level await (requires "type": "module" in package.json)
Use Jest (requires Babel)
Describe the solution you'd like
Ideally, I'd be able to have one TypeScript configuration and use that for everything, including running my project, type checking, and running my tests. Here's what I'd expect the configuration to look like:
Prior to adding Jest as a requirement, I was using ts-node. However, with Jest, I need to be able to use Babel. Ideally, I'd be able to use the same configuration and tools for everything, to ensure the code works consistently.
Documentation, Adoption, Migration Strategy
No response
The text was updated successfully, but these errors were encountered:
Hey @LandonSchropp! 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.
However, you will need to compile your files ahead of time (using @babel/cli): Babel does not support running "at runtime" yet like ts-node when using native ESM, because Node.js doesn't have a stable ESM loader API yet.
馃捇
What problem are you trying to solve?
Apologies if this is captured elsewhere. I'm trying to sort out all of the moving parts with configuring Babel/TypeScript, so I may have missed something.
I'm setting up a TypeScript Node.js project, and I'd like to be able to do the following:
import
/export
syntax in my files.await
(requires"type": "module"
inpackage.json
)Describe the solution you'd like
Ideally, I'd be able to have one TypeScript configuration and use that for everything, including running my project, type checking, and running my tests. Here's what I'd expect the configuration to look like:
Describe alternatives you've considered
Prior to adding Jest as a requirement, I was using
ts-node
. However, with Jest, I need to be able to use Babel. Ideally, I'd be able to use the same configuration and tools for everything, to ensure the code works consistently.Documentation, Adoption, Migration Strategy
No response
The text was updated successfully, but these errors were encountered: