tsup


Powered by **`[esbuild](https://github.com/evanw/esbuild)`**, **`tsup`** is not only super easy to use but also incredible fast
```typetsup src/index.ts --format cjs,esm```
Two files **`dist/index.js`** and **`dist/index.mjs`** will be generated with it and you are good to go



> [Publish ESM and CJS in a single package](https://antfu.me/posts/publish-esm-and-cjs)





