build.config.ts 598 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { defineBuildConfig } from 'unbuild';
  2. export default defineBuildConfig({
  3. entries: [
  4. 'src/index',
  5. 'src/components/index',
  6. 'src/hooks/index',
  7. 'src/api/index'
  8. ],
  9. declaration: true,
  10. clean: true,
  11. rollup: {
  12. emitCJS: true,
  13. esbuild: {
  14. target: 'node18'
  15. }
  16. },
  17. externals: [
  18. 'react',
  19. 'react-dom',
  20. '@tanstack/react-query',
  21. 'react-hook-form',
  22. '@hookform/resolvers',
  23. 'hono',
  24. 'sonner',
  25. 'date-fns',
  26. 'lucide-react',
  27. 'class-variance-authority',
  28. 'clsx',
  29. 'tailwind-merge',
  30. 'zod',
  31. 'axios',
  32. 'dayjs'
  33. ]
  34. });