Skip to content

Conversation

@ibrahimcesar
Copy link
Owner

Migrated the project from Rollup to Vite to improve maintainability and reduce dependency count.

Changes

  • Created vite.config.ts with library mode configuration
  • Removed rollup.config.js and all Rollup plugins
  • Removed babel.config.cjs, babel.config.js and all Babel dependencies
  • Reduced devDependencies from 38 to 24 (37% reduction)
  • Updated build script to use 'vite build'
  • Fixed TypeScript type for referrerPolicy prop

Build Features Maintained

  • ✅ ESM and CJS output formats
  • ✅ TypeScript declaration files
  • ✅ Source maps
  • ✅ License banner in output files
  • ✅ CSS and LICENSE file copying

Testing

  • All 20 existing tests pass
  • Build output verified to match previous format
  • No breaking changes

Resolves #119

Migrated the project from Rollup to Vite to improve maintainability
and reduce dependency count.

## Changes
- Created vite.config.ts with library mode configuration
- Removed rollup.config.js and all Rollup plugins
- Removed babel.config.cjs, babel.config.js and all Babel dependencies
- Reduced devDependencies from 38 to 24 (37% reduction)
- Updated build script to use 'vite build'
- Fixed TypeScript type for referrerPolicy prop

## Build Features Maintained
- ✅ ESM and CJS output formats
- ✅ TypeScript declaration files
- ✅ Source maps
- ✅ License banner in output files
- ✅ CSS and LICENSE file copying

## Testing
- All 20 existing tests pass
- Build output verified to match previous format
- No breaking changes

Resolves #119
@ibrahimcesar ibrahimcesar merged commit 8cd1f8c into main Nov 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move to a vite-based setup to increase maintainability/reduce dependencies

3 participants