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

Fix exports: ESM & CJS multi-module #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

pubkey
Copy link

@pubkey pubkey commented Nov 23, 2023

This PR changes the build scripts so that this package can be used either as esm module or as cjs package at the same time.

This fixes #21 while making it still usable for everyone who is still on cjs modules.

Questions:

  • Would you accept a PR to add a CI via github actions with some tests?
  • Would you accept a PR to add typescript typings (or even rewrite the code to typescript)?
  • Would you accept a PR to have a node.js fallback where the global window variable is not defined?

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.

Vite complains
1 participant