react-use icon indicating copy to clipboard operation
react-use copied to clipboard

add 'type: module' field to package.json

Open HimanshuKK08 opened this issue 8 months ago • 5 comments

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

HimanshuKK08 avatar Apr 27 '25 10:04 HimanshuKK08