Skip to content

fix: bug axios breaks commonjs compatibility main entry#7532

Merged
jasonsaayman merged 3 commits intov1.xfrom
fix/7463-bug-axios-breaks-commonjs-compatibility-main-entry
Mar 19, 2026
Merged

fix: bug axios breaks commonjs compatibility main entry#7532
jasonsaayman merged 3 commits intov1.xfrom
fix/7463-bug-axios-breaks-commonjs-compatibility-main-entry

Conversation

@jasonsaayman
Copy link
Copy Markdown
Member

@jasonsaayman jasonsaayman commented Mar 19, 2026

Closes #7463


Summary by cubic

Restores CommonJS compatibility by pointing axios's main entry to the built CJS bundle so require('axios') works in Node again. ESM exports are unchanged.

Description

Testing

  • No tests changed.
  • Recommend adding a smoke test that require('axios') loads successfully and exposes expected APIs (e.g., axios.get).

Written for commit 652b68c. Summary will update on new commits.

@jasonsaayman jasonsaayman self-assigned this Mar 19, 2026
@jasonsaayman jasonsaayman added priority::medium A medium priority commit::fix The PR is related to a bugfix labels Mar 19, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@jasonsaayman jasonsaayman merged commit bcfd299 into v1.x Mar 19, 2026
20 checks passed
@jasonsaayman jasonsaayman deleted the fix/7463-bug-axios-breaks-commonjs-compatibility-main-entry branch March 19, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit::fix The PR is related to a bugfix priority::medium A medium priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

axios version 1.13.6 package.json "Cannot use import statement outside a module" in node 12

1 participant