Open maneesht opened 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.
/index.js
This should fix #277
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