SvelteKit includes a package command that generates this whole exports thing for you. If you're in a VB based platform, it's kind of forcing you into like an ESM flow and then you're not going to get into that situation either. And also, if you want types in it, I learned this is a little tip. Apparently the types has to be the first thing in your exports, otherwise, TypeScript will get have a hard time finding it or get mad about it as a d.ts file.
In this episode of Syntax, Wes and Scott talk through what ESM is, and why you want to move your projects to ESM.
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