This chapter explores the different module formats used in JavaScript, including immediately invoked function format, AMD module format, CommonJS module format, and UMD module format. It discusses the challenges and differences between the ES2015 module syntax and the CommonJS module syntax, as well as the benefits of using ESM (ECMAScript Modules). The chapter also delves into the various ways of defining how a package works and is imported, and the challenges of package dependencies upstream.
In this supper club episode of Syntax, Wes and Scott talk with Mark Erikson about his work in helping others understand shipping ESM, how to deal with permutations, whether default imports are helpful, whether TypeScript has made it easier, and what Mark’s tool stack is for building.
Show Notes
××× SIIIIICK ××× PIIIICKS ×××
Shameless Plugs
Tweet us your tasty treats