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

[Feature Request] Provide an ECMAScript module (ESM) bundle #126

Closed
Lonli-Lokli opened this issue Oct 1, 2020 · 2 comments
Closed

[Feature Request] Provide an ECMAScript module (ESM) bundle #126

Lonli-Lokli opened this issue Oct 1, 2020 · 2 comments

Comments

@Lonli-Lokli
Copy link

Provide an ECMAScript module (ESM) bundle instead of only commonJS
ref: https://web.dev/commonjs-larger-bundles/

@wnr
Copy link
Owner

wnr commented Oct 5, 2020

Seems like a good thing! Would you create a PR? :)

@wnr wnr closed this as completed Jan 20, 2021
@nachodd
Copy link

nachodd commented May 11, 2023

I have some issues with this package for the same reason. To put it in context:
I'm using vue-grid-layout-v3 which uses your library. Everything is fine, until I try to use vue-grid-layout-v3 with Vite, which uses ESM packages under the hood. So it was throwing me errors like "element-resize-detector doesn't have a default export". So, it seems that the problem is that your library is not ESM compatible. I needs a rewrite... OR, maybe we can use a tools like: to-esm and generate different entry points.
What do you think? I haven't tried it, but seems promising. If you accept, I can try 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