Syntax - Tasty Web Development Treats

Supper Club × Shipping ESM with Mark Erikson

8 snips
Sep 1, 2023
Mark Erikson, a maintainer of Redux and React packages, shares insights on navigating the world of ECMAScript Modules (ESM). He discusses the complexities of shipping packages, particularly the challenges of managing different module formats and the role of bundlers. The conversation covers whether default imports are helpful, the impact of TypeScript on development, and the tools Erikson uses for building. He also touches upon the future of bundling and the significance of source maps in modern JavaScript development.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

Maintainer struggles

  • Library maintainers often use hacks and best-faith efforts when publishing packages.
  • Mark Erikson admits to not always fully understanding the complexities of package publishing.
INSIGHT

Need for Guidance

  • There's a need for a comprehensive guide on publishing packages in the modern ecosystem.
  • Existing resources are fragmented, making it difficult for maintainers to find complete information.
INSIGHT

Module Types

  • Simply publishing everything in ESM is not feasible due to varying consumer environments.
  • Users consume modules in three different types, complicating package publishing.
Get the Snipd Podcast app to discover more snips from this episode
Get the app