Does anyone have a good blog/video/resource to read up about CommonJS vs ESM vs CJS ?

Hi. I am new to bundling logic. Learning about these. I have a component library I am looking to publish internally. Looking at Uber's baseweb and Airbnb's visx, it seems from their package json that they publish pkg, cjs and esm versions. I don't quite fully understand what these are and what are the differences between these. Can anyone point me to good resources that explain what these are and the differences between them ?
1 Reply
Matvey
Matvey16mo ago
Bun
CommonJS is not going away
CommonJS is here to stay, and that's okay. Better tooling will solve today's developer experience issues.
Want results from more Discord servers?
Add your server