Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add cjs module compilation #276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vlepot
Copy link

@vlepot vlepot commented Jan 22, 2025

Fixes #193

When Typescript is configured to produce CommonJS code, this module is not usable since it is compiled as a ES module.

In order to be able to use it also in a CommonJS context, I propose to compile it also as a CJS module (using rollup) and expose both versions in the package.json.

@vlepot
Copy link
Author

vlepot commented Jan 28, 2025

Hi! Any news?

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.

v3 Breaks Typescript Build
1 participant