Skip to content

Conversation

HimanshuKK08
Copy link

This PR adds the "type": "module" field to the package.json file, which properly signals to Node.js and bundlers that the package uses ESM (ECMAScript Modules) syntax.

This change ensures better compatibility when consuming react-use in modern ESM environments, resolves issues related to module imports, and aligns with the ongoing transition to ESM support.

Fixes: #2614

@tjcchen
Copy link

tjcchen commented Jun 3, 2025

Looks good!

@evilpeach
Copy link

@HimanshuKK08 @tjcchen Could you guys please merge this pr?

@tjcchen
Copy link

tjcchen commented Jul 16, 2025

Can someone help merge this PR, thanks

@HimanshuKK08
Copy link
Author

@tjcchen @evilpeach Sorry, But i am not sure if i could merge this PR and how to do so

@thecodephilic-guy
Copy link

Tell me are these people actively merging PRs or not? I think they are not because there are a lot of pending PRs

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.

Wrong file extension for esm

4 participants