build.config.ts 597 B

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