In TypeScript 5, there's a beta out now. They added a feature to fix exactly that issue. In the esm show, remember I was saying how I needed to add .js to the end of every single one of my imports? Yes. So I'm not sure if I want to just turn that on or the deed is done already. It will do module resolution bundler instead of node next or node.Next up, you'll want to start your refactor, which is the big thing. Now luckily for me, I was kind of writing a lot of these files from scratch. What I was doing is I was creating a new file and then copying and pasting
In this episode of Syntax, Wes and Scott talk about their respective processes for converting JavaScript to TypeScript in their projects, why you might want to, and tooling for moving to TypeScript.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Show Notes
××× SIIIIICK ××× PIIIICKS ×××
Shameless Plugs
Tweet us your tasty treats