Starcounter-Jack / JSON-Patch

Lean and mean Javascript implementation of the JSON-Patch standard (RFC 6902). Update JSON documents using delta patches.
MIT License
1.78k stars 215 forks source link

Fixed named exports resolution with commonjs #314

Open maneesht opened 1 year ago

maneesht commented 1 year ago

By default, when importing using CommonJS, node will resolve to /index.js. However, this doesn't work when using named imports. By specifying the ESM module instead of the CommonJS module when using ESM, the resolution error goes away.

This should fix #277