DEV Community

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

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.