tsup.config.ts 346 B

12345678910111213141516
  1. import { Options } from "tsup"
  2. const options: Options = {
  3. format: [
  4. "cjs",
  5. // loading Babel in ESM is tricky, since Babel itself it CJS only
  6. // we decided to drop ESM support until Babel supports native ESM
  7. // 'esm',
  8. ],
  9. clean: true,
  10. splitting: true,
  11. dts: true,
  12. entryPoints: ["src/**/*.ts"],
  13. }
  14. export default options