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

Support ES modules #148

Merged
merged 1 commit into from
Nov 28, 2022
Merged

Support ES modules #148

merged 1 commit into from
Nov 28, 2022

Conversation

matewilk
Copy link
Contributor

@matewilk matewilk commented Nov 23, 2022

This PR allows for treating the use-dabounce library as a ES module

Adds
type: "module" to package.json file
Changes
jest.config.js file extension to jest.config.cjs - to opt out of ESM for this file

matewilk added a commit to matewilk/use-debounce that referenced this pull request Nov 23, 2022
@matewilk
Copy link
Contributor Author

Apologies for force pushes, didn't know how to properly link an issue with a PR. Now I know 😄

@matewilk
Copy link
Contributor Author

I'm seeing the build is failing, I think it might be due to the fact that the build uses node v12. I think the ES modules are supported from node v16.

@xnimorz
Copy link
Owner

xnimorz commented Nov 28, 2022

Resolved failures in #150

@xnimorz xnimorz merged commit 7304a6c into xnimorz:master Nov 28, 2022
@xnimorz
Copy link
Owner

xnimorz commented Nov 28, 2022

Thanks for the contribution @matewilk I'll cut a new release soon

@xnimorz
Copy link
Owner

xnimorz commented Nov 28, 2022

@matewilk
Copy link
Contributor Author

Thank you @xnimorz, appreciate your library and prompt responses and actions

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.

2 participants