Powered by
esbuild, tsup is not only super easy to use but also incredible fasttsup 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
Seonglae Cho