Skip to content

Conversation

Gozala
Copy link

@Gozala Gozala commented Oct 20, 2020

This pull request fixes typedefs so that module does not pretends to be a ES module, which causes problems like this:

image

And misleads users to do require('hashlru').default instead, which than breaks at runtime because there is no exports.default.

Suggested syntax is recognized by TS as CommonJS module, which works as expected when importing from commonjs and also works correctly when imported from TS / ESM models if esModuleInterop: true is set in tsconfig.json

@Gozala Gozala mentioned this pull request Dec 9, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant