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

Provide es module version #39

Open
stefnotch opened this issue Nov 2, 2020 · 3 comments
Open

Provide es module version #39

stefnotch opened this issue Nov 2, 2020 · 3 comments

Comments

@stefnotch
Copy link

I'm struggling with importing your library in a vite project. I mostly just get the error

Uncaught SyntaxError: import not found: default
@davidcallanan
Copy link

I agree, an ES module version would be nice. I am struggling to import it ATM.

It's a matter of adding "module": "index.esm.js" to the package.json and then including an ESM building step.

@GregRos
Copy link
Owner

GregRos commented Sep 6, 2023

Maintaining multiple builds is actually way more frustrating than it sounds! Pretty much every library is eager to stop doing it, and many have already moved to ESM entirely.

My current plan is to move the library to ESM as part of a major upgrade sometime in the future.

What do you think? 😊

@stefnotch
Copy link
Author

@GregRos That sounds like a lovely plan, and I fully support it.

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

No branches or pull requests

3 participants