3min chapter

Syntax - Tasty Web Development Treats cover image

570

Syntax - Tasty Web Development Treats

CHAPTER

ESM or Common JS?

Meteor had the import style syntax, even though it wasn't ESM as its default means of importing from the start. So when I moved the site over to off of Meteor, I moved it first to just a straight up VIT server with react. And that was the ESM base. Now with Svelte and whatever, when I rewrote my API using ES build, I wrote it with ESM from the beginning. It's kind of complicated. You hit, there's a whole bunch of gotchas in the differences between the two. There's lots of different file extensions and whatnot. On top of that, we're not going to talk too much about Type

00:00

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