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

Need an esm module #42

Open
superchris opened this issue Jul 13, 2024 · 0 comments
Open

Need an esm module #42

superchris opened this issue Jul 13, 2024 · 0 comments

Comments

@superchris
Copy link

For environments (eg importmaps) that don't do any transpilation from commonjs modules, this package is currently unusable. Any chance you could add a proper esm module to your exports? Great library, by the way.

For clarity, trying to use this in a browser testing environment, I get:

SyntaxError: The requested module './../node_modules/debounce/index.js' does not provide an export named 'debounce'

This is because only this library is only provided as a commonjs module, which browsers don't support natively.

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

1 participant