tsdown.config.ts 541 B

12345678910111213141516171819202122232425
  1. import { defineConfig } from 'tsdown'
  2. /** Build the package root and optional invariant companion as independent bundles. */
  3. export default defineConfig([
  4. {
  5. entry: ['lib/types/index.js'],
  6. outDir: 'lib',
  7. format: ['esm'],
  8. platform: 'node',
  9. target: 'es2024',
  10. fixedExtension: false,
  11. dts: false,
  12. clean: false,
  13. },
  14. {
  15. entry: ['lib/types/invariant.js'],
  16. outDir: 'lib',
  17. format: ['esm'],
  18. platform: 'node',
  19. target: 'es2024',
  20. fixedExtension: false,
  21. dts: false,
  22. clean: false,
  23. },
  24. ])