Skip to content

fix: commonjs namespace re-export with a string export name - #18498

Merged
nicolo-ribaudo merged 1 commit into
babel:mainfrom
bohdanprog:fix-commonjs-namespace-string-export
Nov 2, 2026
Merged

nicolo-ribaudo merged 1 commit into
babel:mainfrom
bohdanprog:fix-commonjs-namespace-string-export

Conversation

@bohdanprog

@bohdanprog bohdanprog commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor
Q                       A
Fixed Issues? Fixes #18496
Patch: Bug Fix? 👍
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes? No
Need backport? 7.x (the bug is also in 7.x, and the maintainers decide)
License MIT

My changes fixed issue instead of the invalid exports.some exports = ns; it convert to correct

@babel-bot

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/62916

@pkg-pr-new

pkg-pr-new Bot commented Nov 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: c188502

@nicolo-ribaudo nicolo-ribaudo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@nicolo-ribaudo
nicolo-ribaudo added this pull request to the merge queue Nov 2, 2026
@nicolo-ribaudo nicolo-ribaudo added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Nov 2, 2026
Merged via the queue into babel:main with commit 3b8f924 Nov 2, 2026
75 checks passed
@babel-bot

Copy link
Copy Markdown
Collaborator

Backported to 7.x in #18499.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Bug Fix 🐛 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

commonjs: invalid exports.some exports = ns for a namespace exported under a string name

4 participants