xchainjs-lib icon indicating copy to clipboard operation
xchainjs-lib copied to clipboard

use "exports" field in package.json

Open dynst opened this issue 7 months ago • 3 comments

https://nodejs.org/api/packages.html#exports

Without this field, Node.js import logic believes it's just a CJS package - node doesn't recognize the old non-standard "module" field (while transpilers like webpack do).

dynst avatar Jun 02 '25 22:06 dynst