tsup.config.ts 354 B

123456789101112131415161718
  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: [
  13. 'src/**/*.ts',
  14. ],
  15. }
  16. export default options