Syntax - Tasty Web Development Treats cover image

570

Syntax - Tasty Web Development Treats

ESM Publishing - Using the Module Dot Exports

4min Snip

00:00
Play full episode
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.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode