DEV Community

Discussion on: How to start a TypeScript project [2021]

Collapse
 
craigaholliday profile image
Craig Holliday

What’s a good post from them showing how to configure ESM-only and what does backwards compatibility look like?

Collapse
 
yoursunny profile image
Junxiao Shi

I wish I know!
My own library is ESM only since (almost) the beginning, but all my dependencies are either ESM+CJS or CJS-only.

I went through significant efforts making all these things happy:

  • Node
  • TypeScript
  • Jest
  • webpack
  • Parcel bundler
  • Puppeteer

Now @sindresorhus went ESM-only, and Jest is throwing errors.