You can have multiple exports from an ESM package that point to completely different things, meaning you can have like node code being exported from one package and then browser code from another export in your module. So that to me is like a big plus is that you can include so many different things, but then map them all. And not only that, if you want to get really intense about it, you can also do an import or a require property within an object value of that same export.
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