Skip to content

fix(ts): improve variable handling in namespace - #18190

Merged
nicolo-ribaudo merged 1 commit into
babel:mainfrom
JLHwung:fix-18188
Sep 9, 2026
Merged

nicolo-ribaudo merged 1 commit into
babel:mainfrom
JLHwung:fix-18188

Conversation

@JLHwung

@JLHwung JLHwung commented Aug 17, 2026

Copy link
Copy Markdown
Contributor
Q 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 A
Fixed Issues? Fixes #18188
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Improved the variable handling in the namespace transform. The approach is exactly as suggested in #18188. Added new exec tests and updated the current test snapshot.

@JLHwung JLHwung added PR: Bug Fix 馃悰 A type of pull request used for our changelog categories area: typescript labels Aug 17, 2026
@babel-bot

Copy link
Copy Markdown
Collaborator

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

@pkg-pr-new

pkg-pr-new Bot commented Aug 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: a0fce53

@nicolo-ribaudo
nicolo-ribaudo merged commit b7eef30 into babel:main Sep 9, 2026
100 of 115 checks passed
@nicolo-ribaudo
nicolo-ribaudo deleted the fix-18188 branch September 9, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: typescript 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.

[Bug]: TS namespace drops every other statement after destructuring export const

4 participants