Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Improve Packaging and Modernize Setup #27

@knowingharsh

Description

@knowingharsh

Improve Packaging and Modernize Setup

Background

The current setup and packaging strategy of react-coach-mark is outdated. It needs improvements to align with modern best practices, support newer versions of dependencies, and integrate seamlessly with frameworks like Next.js.

Proposed Improvements

1. Upgrade Dependencies

  • Update React, TypeScript, and other core dependencies to their latest stable versions.
  • Ensure compatibility with React 18 and newer versions.

2. Enhance Build & Packaging Strategy

  • Use modern bundlers like ESBuild, Vite, or Rollup for optimized output.
  • Generate ESM and CJS outputs for better compatibility.
  • Ensure proper tree-shaking support to minimize bundle size.

3. Lightweight

  • This should be shipping lightweight code

4. Framework Support

  • Improve support for Next.js by ensuring SSR compatibility.
  • Ensure proper handling of hydration issues.

5. Testing & CI/CD Improvements

  • Add/update unit tests using Jest or Vitest.
  • Set up GitHub Actions or another CI/CD pipeline for automated testing and publishing.

Next Steps

  • Discuss and decide on the best approach for implementation.
  • Incrementally refactor and test changes.

Would love community input on these changes! 🚀

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions