Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update import method in cjs #258

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

yutak23
Copy link
Contributor

@yutak23 yutak23 commented Nov 27, 2023

This ought to fix #257.

With the migration to TypeScript, .default is now required in cjs. I have changed my README to accommodate that change.

I don't think this change in the README is destructive, because even before v4.0.0 it was exported as module.exports.default = axiosRetry;.
https://github.com/softonic/axios-retry/blob/v3.9.1/index.js#L4

@mindhells mindhells merged commit 0923051 into softonic:master Nov 27, 2023
3 checks passed
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.

Requiring cjs is broken since the last version (4.0.0)
2 participants