It's not fully supported everywhere yet, but eventually that will be there. You don't have to do the read file type of thing. Like I want what does that compile to probably node APIs? Oh, that's a great question. Haven't looked. Or it just puts it in a string and makes a JavaScript file that exports that string. It's definitely not node APIs because that would not work if it was client side.
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