build.config.ts 333 B

12345678910111213141516171819
  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: 'es2022',
  15. jsx: 'automatic',
  16. },
  17. },
  18. });