react-use
react-use copied to clipboard
add 'type: module' field to package.json
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